FrontEnd – NorthBeam & Proof Scripts
function insert_nort_proof() { $nortbeam_script = ‘‘; $proof_script = ‘‘; echo $nortbeam_script; echo $proof_script; } add_action( “wp_head”, “insert_nort_proof”, 0 );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
function insert_nort_proof() { $nortbeam_script = ‘‘; $proof_script = ‘‘; echo $nortbeam_script; echo $proof_script; } add_action( “wp_head”, “insert_nort_proof”, 0 );Continue reading
/** * Convert Uploaded Images to WebP Format * * This snippet converts uploaded images (JPEG, PNG, GIF) to WebP format * automatically in WordPress. Ideal for use in a theme’s functions.php file, * or with plugins like Code Snippets…Continue reading
function remove_feeds() { wp_die( __( ‘Feeds Disabled’ ) ); } add_action(‘do_feed’, ‘remove_feeds’, 1); add_action(‘do_feed_rdf’, ‘remove_feeds’, 1); add_action(‘do_feed_rss’, ‘remove_feeds’, 1); add_action(‘do_feed_rss2’, ‘remove_feeds’, 1); add_action(‘do_feed_atom’, ‘remove_feeds’, 1); add_action(‘do_feed_rss2_comments’, ‘remove_feeds’, 1); add_action(‘do_feed_atom_comments’, ‘remove_feeds’, 1); remove_action( ‘wp_head’, ‘feed_links_extra’, 3 ); remove_action( ‘wp_head’, ‘feed_links’, 2…Continue reading
add_filter( ‘acf/shortcode/allow_unsafe_html’, function ( $allowed, $atts ) { $allowed = true; return $allowed; }, 10, 2 ); add_filter( ‘acf/the_field/allow_unsafe_html’, function( $allowed, $selector ) { $allowed = true; return $allowed; }, 10, 2 );Continue reading
// This code snippet provides dynamic data to a // In use for Elementor Templates // – Active Templates: Vendor Taxonomy Archive // – Vendor Taxonomies: Vendor Location, Vendor Zone, Vendor Pricing, Vendor Identity Attributes, Vendor Categories // Reference URL…Continue reading
// // Modifies the WP Grid Builder query to filter vendors based on matching ‘vendor-location’ // // taxonomy terms with the current post’s ‘post-location’ terms. // // This function is hooked into the WP Grid Builder’s query argument filter, //…Continue reading
// // Modifies the WP Grid Builder query to filter vendors based on matching ‘vendor-location’ // // taxonomy terms with the current post’s ‘post-location’ terms. // // This function is hooked into the WP Grid Builder’s query argument filter, //…Continue reading
// // Modifies the WP Grid Builder query to filter vendors based on matching ‘vendor-location’ // // taxonomy terms with the current post’s ‘post-location’ terms. // // This function is hooked into the WP Grid Builder’s query argument filter, //…Continue reading
// This code snippet ensures that vendors are displayed in the following order: // – Featured vendors (vendor posts with ‘status_ven_featured’ set to 1) in ascending order by post title // – Love list vendors (vendor posts with ‘status_ven_love_list’ set…Continue reading