Disable WP Texturize
add_filter( ‘run_wptexturize’, ‘__return_false’ );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘run_wptexturize’, ‘__return_false’ );Continue reading
add_filter( ‘xmlrpc_enabled’, ‘__return_false’ );Continue reading
add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading
// Disable the Plugin and Theme Editor if ( ! defined( ‘DISALLOW_FILE_EDIT’ ) ) { define( ‘DISALLOW_FILE_EDIT’, true ); }Continue reading
add_filter(‘wp_is_application_passwords_available’, ‘__return_false’);Continue reading
// Hide all admin notices in a collapsible sidebar function hide_all_admin_notices_in_sidebar() { ?>Continue reading
add_action( ‘after_setup_theme’, function() { remove_theme_support( ‘post-formats’ ); }, 11 );Continue reading
add_filter( ‘big_image_size_threshold’, ‘__return_false’ );Continue reading
add_filter( ‘rest_authentication_errors’, function( $result ) { if ( ! empty( $result ) ) { return $result; } if ( ! is_user_logged_in() ) { return new WP_Error( ‘rest_disabled’, __( ‘The WordPress REST API has been disabled.’ ), array( ‘status’ => 401…Continue reading
add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading