Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
Doing some WordPress stuff...

Allyson Souza allysonsouza

💻
Doing some WordPress stuff...
View GitHub Profile
@allysonsouza
allysonsouza / plugin-show-dirname.php
Last active May 12, 2023 19:02
[Plugin Show Dirname] Display WordPress plugin directory name in plugin list view, making easier to identify plugins with same name, useful when you want to have installed multiple versions of same plugin to easily switch activation
View plugin-show-dirname.php
<?php
/**
* Plugin Name: Plugin Show Dirname
* Description: Display WordPress plugin directory name in plugin list view, making easier to identify plugins with same name, useful when you want to have installed multiple versions of same plugin to easily switch activation
* Plugin URI:
* Version: 1.0
* Author: Allyson
* Author URI: https://allysonsouza.com.br
* License: GPL2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
@allysonsouza
allysonsouza / error-reporting-level.php
Last active May 24, 2023 20:23
Error Reporting Level for WordPress
View error-reporting-level.php
<?php
/**
* Plugin Name: Error Reporting Level
* Description: Sets the error reporting level for your WordPress install. View more on: https://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
* Plugin URI:
* Version:
* Author: Allyson
* Author URI: https://allysonsouza.com.br
* License: GPL2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
@allysonsouza
allysonsouza / jet-engine-macro-current-user-email.php
Last active January 24, 2023 19:27
JetEngine Macro - Current user email
View jet-engine-macro-current-user-email.php
<?php
/*
Plugin Name: JetEngine Macro - Current user email
Plugin URI:
Description:
Author: Allyson Souza
Version: 1.0.0
Author URI: https://www.allysonsouza.com.br
*/
@allysonsouza
allysonsouza / command.md
Created October 27, 2022 16:32
[Bash Commands] #Linux #Ubuntu #Terminal #Bash
View command.md
@allysonsouza
allysonsouza / basic.md
Last active October 25, 2022 21:46
[Git Commands] Git commands #Git #snippets
View basic.md
@allysonsouza
allysonsouza / docker-snippets.md
Last active April 15, 2022 18:38
[Docker Snippets] Docker snippets that can be useful on daily basis #docker
@allysonsouza
allysonsouza / gitlab-add-board-link.js
Last active March 17, 2022 22:00
UserScript: GitLab - Add Board Link
View gitlab-add-board-link.js
@allysonsouza
allysonsouza / launch.json
Created September 24, 2021 20:51
[VS Code XDebug launch.json] VS Code XDebug launch.json config #vscode #xdebug
View launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000
}
]
@allysonsouza
allysonsouza / php.cli.md
Last active May 10, 2023 17:25
[PHP CLI Commands] #php
@allysonsouza
allysonsouza / wp-remove-dashboard-widgets.php
Created August 28, 2021 14:54
Remove WordPress dashboard widgets
View wp-remove-dashboard-widgets.php
<?php
/**
* Remove dashboard widgets.
*/
function remove_dashboard_widgets() {
remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' );
remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' );
remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' );
remove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' );
remove_meta_box( 'dashboard_primary', 'dashboard', 'side' );