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
html { margin-top: 0 !important; } #wpadminbar { translate: 0 -100%; } #wpadminbar:before { content: “”; position: absolute; inset: 0; translate: 0 100%; } #wpadminbar, #wpadminbar:before { transition: 0.5s 0.5s cubic-bezier(0.19, 1, 0.22, 1); } #wpadminbar:hover, #wpadminbar:hover:before { translate: 0…Continue reading
/** * Hide Price & Add to Cart for Non Logged in Users for Specific Products */ function is_non_purchasable_products_for_visitors( $product ) { $not_purchasable_products = array( 23, 22 ); // Replace with Products ID you want to set as non purchasable…Continue reading
.btn, button { background-color: lightgreen; }Continue reading
/** * Promote the hero image (LCP) site-wide: * – fetchpriority=”high”, loading=”eager” * – remove lazy markers from LiteSpeed/Smush * – inject in * Works on every page using the shared hero structure. */ add_action( ‘wp_head’, function () { ?>Continue reading