// Admin 404 Log / Kiri Vadivelu / 2026 // Add admin menu function add_404_log_menu() { add_menu_page( ‘404 Error Log’, ‘404 Log’, ‘manage_options’, ‘404-log’, ‘render_404_log_page’, ‘dashicons-megaphone’, 80 ); } add_action( ‘admin_menu’, ‘add_404_log_menu’ ); // Render the page function render_404_log_page() {…Continue reading
// Admin Debug Log / Kiri Vadivelu / 2026 // Ensure debug mode enabled at wp-config // if ( ! defined( ‘WP_DEBUG’ ) ) define( ‘WP_DEBUG’, true ); // if ( ! defined( ‘WP_DEBUG_DISPLAY’ ) ) define( ‘WP_DEBUG_DISPLAY’, false );…Continue reading
add_filter( ‘xmlrpc_enabled’, ‘__return_false’ );Continue reading
add_filter(‘rest_endpoints’, function( $endpoints ) { if ( isset( $endpoints[‘/wp/v2/users’] ) ) { unset( $endpoints[‘/wp/v2/users’] ); } if ( isset( $endpoints[‘/wp/v2/users/(?P[\d]+)’] ) ) { unset( $endpoints[‘/wp/v2/users/(?P[\d]+)’] ); } return $endpoints; });Continue reading
add_filter(‘the_generator’, ‘__return_empty_string’);Continue reading
add_filter( ‘admin_title’, function ( $admin_title, $title ) { return str_replace( ” — WordPress”, ”, $admin_title ); }, 10, 2 );Continue reading
// Please note: This snippet will only show the last login date & time AFTER the snippet is activated. // The snippet has to be active to track the last login date & time. // Add a column to the…Continue reading
// Disable the Plugin and Theme Editor if ( ! defined( ‘DISALLOW_FILE_EDIT’ ) ) { define( ‘DISALLOW_FILE_EDIT’, true ); }Continue reading
// 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