Remove Login Shake Animation
add_action( ‘login_footer’, function () { remove_action( ‘login_footer’, ‘wp_shake_js’, 12 ); } );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_action( ‘login_footer’, function () { remove_action( ‘login_footer’, ‘wp_shake_js’, 12 ); } );Continue reading
remove_action(‘wp_head’, ‘feed_links’, 2 ); remove_action(‘wp_head’, ‘feed_links_extra’, 3 );Continue reading
/** * Display a custom message instead of the RSS Feeds. * * @return void */ function wpcode_snippet_disable_feed() { wp_die( sprintf( // Translators: Placeholders for the homepage link. esc_html__( ‘No feed available, please visit our %1$shomepage%2$s!’ ), ‘ ‘, ‘‘…Continue reading
add_filter(‘views_plugins’, function($views) { global $wp_list_table; if (!is_network_admin() && isset($wp_list_table->items)) { $all_plugins = $wp_list_table->items; $active_plugins = get_option(‘active_plugins’); $reordered_plugins = array(); // Add active plugins first foreach ($all_plugins as $plugin_file => $plugin_data) { if (in_array($plugin_file, $active_plugins)) { $reordered_plugins[$plugin_file] = $plugin_data; } }…Continue reading
add_action( ‘admin_head’, function () { if ( current_user_can( ‘update_core’ ) ) { return; } remove_action( ‘admin_notices’, ‘update_nag’, 3 ); }, 1 );Continue reading
add_filter(‘the_generator’, ‘__return_empty_string’);Continue reading
add_filter( ‘xmlrpc_enabled’, ‘__return_false’ );Continue reading
// Disable core auto-updates add_filter( ‘auto_update_core’, ‘__return_false’ ); // Disable auto-updates for plugins. add_filter( ‘auto_update_plugin’, ‘__return_false’ ); // Disable auto-updates for themes. add_filter( ‘auto_update_theme’, ‘__return_false’ );Continue reading
// Product details in separate metadata lines + billing country + taxes + coupons add_filter(‘wc_stripe_intent_metadata’, ‘add_custom_stripe_metadata’, 10, 2); function add_custom_stripe_metadata($metadata, $order) { $count = 1; $billing_country = $order->get_billing_country(); // Get billing country $order_subtotal = $order->get_subtotal(); // Get order subtotal $cart_discount…Continue reading
add_filter( ‘render_block_tasty-roundups/child’, function ( $block ) { $initial_block = $block; $block = preg_replace( ‘~Continue reading