Disable Automatic Updates Emails

// Disable auto-update emails. add_filter( ‘auto_core_update_send_email’, ‘__return_false’ ); // Disable auto-update emails for plugins. add_filter( ‘auto_plugin_update_send_email’, ‘__return_false’ ); // Disable auto-update emails for themes. add_filter( ‘auto_theme_update_send_email’, ‘__return_false’ );Continue reading

Override Block Editor Palette Colors

add_filter( ‘wp_theme_json_data_theme’, function ( $theme_json ) { $new_data = array( ‘settings’ => array( ‘color’ => array( ‘palette’ => array( // Replace with your desired colors. array( ‘slug’ => ‘white’, ‘color’ => ‘#ffffff’, ‘name’ => ‘White’, ), array( ‘slug’ => ‘black’,…Continue reading

Reorder Admin Menu Items

add_filter( ‘custom_menu_order’, ‘__return_true’ ); // This will move the WPCode menu under the Dashboard menu item. // Uncomment and add more items as needed. add_filter( ‘menu_order’, function () { return array( ‘index.php’, ‘wpcode’, // ‘edit.php’, // Posts // ‘upload.php’, //…Continue reading

Limit Comments & Display Character Count

if ( ! class_exists( ‘WPCode_Comment_Limit_Counter’ ) ) { class WPCode_Comment_Limit_Counter { // Update this value to change the maximum number of characters allowed in a comment. protected $comment_max_length = 1000; // Update this value to change the minimum number of…Continue reading