Disable Visual Editor Tab
add_filter( ‘user_can_richedit’, ‘__return_false’, 50 );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘user_can_richedit’, ‘__return_false’, 50 );Continue reading
function toggleMenu() { // Find the navigation menu and the body of the page const nav = document.querySelector(‘.main-nav’); const body = document.querySelector(‘body’); // Toggle the class that shows/hides the menu nav.classList.toggle(‘mobile-menu-open’); // Toggle the class that freezes/unfreezes the page scroll…Continue reading
add_filter(‘intermediate_image_sizes_advanced’, function ($sizes) { $sizes = array( ‘thumbnail’ => $sizes[‘thumbnail’], // Giữ lại thumbnail ‘medium’ => $sizes[‘medium’], // Giữ lại medium //’medium_large’ => $sizes[‘medium_large’], // Giữ lại medium_large ‘large’ => $sizes[‘large’], // Giữ lại large //’1536×1536′ => $sizes[‘1536×1536′], // Giữ…Continue reading
// Disabilita i commenti solo sugli articoli (post), non sui prodotti (product) add_action(‘init’, function() { // Rimuovi il supporto ai commenti dagli articoli remove_post_type_support(‘post’, ‘comments’); }, 20); // Nasconde il modulo commenti nel frontend per sicurezza (fallback) add_filter(‘comments_open’, function($open, $post_id)…Continue reading
// Disable wp-embed.min.js function my_deregister_scripts(){ wp_dequeue_script( ‘wp-embed’ ); } add_action( ‘wp_footer’, ‘my_deregister_scripts’ );Continue reading
Home Page History Attention Franchise Dynasty Welcome to the Kansas City Chiefs Fan Page! This is a fan page that I have created and it is going to be going over the Kansas City Chiefs and throughout the page I…Continue reading
function custom_related_products_args( $args ) { $args[‘posts_per_page’] = 2; // Related products সংখ্যা $args[‘columns’] = 2; // কলাম সংখ্যা return $args; } add_filter( ‘woocommerce_output_related_products_args’, ‘custom_related_products_args’ );Continue reading
$isProduction = true; $triggerWords = [‘.loc’, ‘localhost’, ‘.local’, ‘staging.’, ‘.staging’, ‘.testing’, ‘.dev’, ‘.test’, ‘.cloud’]; // edit triggerWords for your setup, these as fairly standard identifiers of non production env // the goal is to check the root url for a…Continue reading