This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Redis Test | |
Plugin URI: https://wordpress.org/plugins/redis-cache/ | |
Description: Redis connection test. | |
Author: Till Krüss | |
Version: 1.0 | |
Author URI: https://till.im/ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Redis; | |
use Redis; | |
use Illuminate\Redis\Database as RedisDatabase; | |
use Illuminate\Contracts\Redis\Database as DatabaseContract; | |
class Database extends RedisDatabase implements DatabaseContract | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'admin_menu', function() { | |
remove_submenu_page( 'edit.php', 'edit-tags.php?taxonomy=post_tag' ); // Remove menu link under "Posts" | |
}); | |
add_action( 'admin_menu', function() { | |
remove_meta_box( 'tagsdiv-post_tag', 'post', 'side'); // Remove metabox on add/edit post screen | |
}); | |
add_filter( 'manage_posts_columns', function($columns) { | |
unset( $columns['tags'] ); // Remove "Tags" column in post listing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'do_feed_rdf', function() { wp_redirect( home_url(), 301 ); exit; }, 1); | |
add_action( 'do_feed_rss', function() { wp_redirect( home_url(), 301 ); exit; }, 1); | |
add_action( 'do_feed_rss2', function() { wp_redirect( home_url(), 301 ); exit; }, 1); | |
add_action( 'do_feed_atom', function() { wp_redirect( home_url(), 301 ); exit; }, 1); | |
add_action( 'init', function() { | |
remove_action( 'wp_head', 'feed_links', 2 ); | |
remove_action( 'wp_head', 'feed_links_extra', 3 ); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Disable Developer Plugins | |
Description: Force disables developer plugins in production environments. | |
*/ | |
$dev_plugins = array( | |
'debug-bar/debug-bar.php', | |
'debug-bar-cron/debug-bar-cron.php', | |
'debug-bar-extender/debug-bar-extender.php', |
NewerOlder