Force nwwp Colour Scheme

add_action( ‘admin_init’, function() { // remove the color scheme picker remove_action( ‘admin_color_scheme_picker’, ‘admin_color_scheme_picker’ ); // force all users to use the “Ectoplasm” color scheme add_filter( ‘get_user_option_admin_color’, function() { return ‘nwwp’; }); });Continue reading

Remove SEO Statistics from the Dashboard menu

add_action( ‘admin_menu’, ‘aioseo_hide_search_stats_menu’, 99999 ); function aioseo_hide_search_stats_menu() { global $submenu; if ( ! isset( $submenu[‘index.php’] ) ) { return; } foreach ( $submenu[‘index.php’] as $index => $props ) { if ( ! empty( $props[2] ) && admin_url( ‘/admin.php?page=aioseo-search-statistics’ ) ===…Continue reading

Google Tag Manager Header

(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’: new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src=Continue reading

Duplicate Posts and Pages

// Add the duplicate link to action list for post_row_actions // for “post” and custom post types add_filter( ‘post_row_actions’, ‘rd_duplicate_post_link’, 10, 2 ); // for “page” post type add_filter( ‘page_row_actions’, ‘rd_duplicate_post_link’, 10, 2 ); function rd_duplicate_post_link( $actions, $post ) {…Continue reading

Amazon Affiliate Disclosure Bottom

— I appreciate you using my affiliate links to purchase in support of the information shared here. ❤️ I independently review everything I recommend and have found this to be much less obnoxious than display ads. Running a reliable website…Continue reading