Disable Gutenberg Editor (use Classic Editor)
add_filter(‘gutenberg_can_edit_post’, ‘__return_false’, 5); add_filter(‘use_block_editor_for_post’, ‘__return_false’, 5);Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter(‘gutenberg_can_edit_post’, ‘__return_false’, 5); add_filter(‘use_block_editor_for_post’, ‘__return_false’, 5);Continue reading
Dream Career Project — Real Estate Agent Dream Career Project Real Estate Agent A clear plan showing the skills, training, and steps I will take to reach my dream job in real estate. Why I Chose It Hard Skills Training…Continue reading
add_filter( ‘gform_required_legend’, ‘__return_empty_string’ );Continue reading
function themify_fix_agcfw_variable_product_scripts() { // Only run on single product pages if ( ! is_product() ) { return; } // Only run if Themify theme is active if ( ! class_exists( ‘Themify_Enqueue_Assets’ ) ) { return; } // Only run if…Continue reading
document.addEventListener(“click”, function () { const iframe = document.querySelector(“iframe[src*=’vimeo.com’]”); if (!iframe) return; iframe.contentWindow.postMessage( JSON.stringify({ method: “setVolume”, value: 1 }), “*” ); iframe.contentWindow.postMessage( JSON.stringify({ method: “play” }), “*” ); }, { once: true });Continue reading
/** * Initialize cross-cutting profile keys for ALL products. * Safe: only creates meta keys if missing. */ add_action( ‘save_post_product’, function( $post_id, $post, $update ) { if ( wp_is_post_autosave( $post_id ) || wp_is_post_revision( $post_id ) ) return; if ( ‘product’…Continue reading
/** * Initialize Power meta fields for Power category products. * Tiered like Speakers: base fields for all Power, plus subtree-specific fields. */ add_action( ‘save_post_product’, function( $post_id, $post, $update ) { if ( wp_is_post_autosave( $post_id ) || wp_is_post_revision( $post_id )…Continue reading
add_action( ‘wp_head’, function() { if ( function_exists( ‘yoast_breadcrumb’ ) ) { echo ‘ ‘; yoast_breadcrumb( ‘ ‘, ‘ ‘ ); echo ‘ ‘; } });Continue reading