Disable wlwmanifest link
remove_action(‘wp_head’, ‘wlwmanifest_link’);Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
remove_action(‘wp_head’, ‘wlwmanifest_link’);Continue reading
add_filter( ‘widget_text’, ‘do_shortcode’ );Continue reading
add_filter( ‘auth_cookie_expiration’, function () { return 30 * DAY_IN_SECONDS; // 30 days in seconds. } );Continue reading
add_filter( ‘the_content’, function ( $content ) { // This snippet requires the DOMDocument class to be available. if ( ! class_exists( ‘DOMDocument’ ) ) { return $content; } if ( !is_single() || !in_the_loop() || !is_main_query() ) { return $content; }…Continue reading
add_filter( ‘the_content’, function ( $content ) { // This snippet requires the DOMDocument class to be available. if ( ! class_exists( ‘DOMDocument’ ) ) { return $content; } if ( !is_single() || !in_the_loop() || !is_main_query() ) { return $content; }…Continue reading
function wpcode_snippet_remove_query_strings_split( $src ) { $output = preg_split( “/(&ver|\?ver)/”, $src ); return $output ? $output[0] : ”; } add_action( ‘init’, function () { if ( ! is_admin() ) { add_filter( ‘script_loader_src’, ‘wpcode_snippet_remove_query_strings_split’, 15 ); add_filter( ‘style_loader_src’, ‘wpcode_snippet_remove_query_strings_split’, 15 ); }…Continue reading
function wpcode_snippet_oembed_defaults( $sizes ) { return array( ‘width’ => 400, ‘height’ => 280, ); } add_filter( ’embed_defaults’, ‘wpcode_snippet_oembed_defaults’ );Continue reading
add_filter(‘the_generator’, ‘__return_empty_string’);Continue reading
add_action( ‘admin_init’, ‘media_sync_library’ ); function media_sync_library() { // Folder inside uploads to scan $scan_folder = ‘/2026/02’; $upload_dir = wp_upload_dir(); $base_dir = $upload_dir[‘basedir’]; $base_url = $upload_dir[‘baseurl’]; $target_dir = $base_dir . $scan_folder; // Stop if folder doesn’t exist if( ! is_dir( $target_dir…Continue reading
/** * Force “Become a Vendor” to always go to * /my-account/become-a-vendor/ * * Applies to BOTH Free and Pro versions. * Only affects users who are NOT vendor or pending-vendor. */ function custom_become_vendor_url_override( $url, $endpoint, $value, $permalink ) {…Continue reading