add_filter( ‘rank_math/json_ld’, function( $data, $jsonld ) { if ( isset( $data[‘publisher’] ) ) { unset( $data[‘publisher’] ); } unset( $data[‘WebPage’] ); unset( $data[‘ProfilePage’] ); unset( $data[‘place’] ); unset( $data[‘WebSite’] ); unset( $data[‘primaryImage’] ); return $data; }, 99, 2 );Continue reading
/** * Fully Disable Comments & Trackbacks (The “Nuclear” Option) * Optimized for performance and UI clarity. */ add_action(‘admin_init’, function () { global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); foreach (get_post_types() as $post_type) {…Continue reading
/** * Disable Unused Auto-Generated Image Sizes * Optimized for AWS Storage savings & Performance. */ add_filter(‘intermediate_image_sizes_advanced’, function ($sizes) { // Standard sizes often needed by Bricks/Kadence – Leave un-commented if needed // unset($sizes[‘thumbnail’]); // unset($sizes[‘medium’]); // unset($sizes[‘large’]); // High-bloat…Continue reading
/** * WPCode Snippet: Convert Libsyn Audio URLs to Iframes * * This snippet detects Libsyn audio URLs in post content and wraps them * in iframe embeds. Works for multisite installations. * * Usage: Add this as a WPCode…Continue reading
// 1. GESTIONE AZIONI AJAX add_action(‘wp_ajax_generate_kitchen_image’, ‘generate_kitchen_image_handler’); add_action(‘wp_ajax_nopriv_generate_kitchen_image’, ‘generate_kitchen_image_handler’); function generate_kitchen_image_handler() { // Pulizia iniziale per evitare testi sporchi nel JSON if (ob_get_length()) ob_clean(); header(‘Content-Type: application/json’); header(“Access-Control-Allow-Origin: *”); // — LA TUA CHIAVE API (METTILA QUI SOTTO) — $api_key =…Continue reading
function k_render_blank_page_template( $template ) { // Aggiungiamo il nuovo slug ‘ai-form-cucina’ if ( is_page( ‘generazione-progetto-cucina-ai’ ) || is_page( ‘ai-form-cucina’ ) ) { ?>Continue reading
Digital StoryWorld Digital StoryWorld Inicio Historias Recursos Sobre Contacto Bienvenidos a Digital StoryWorld Un espacio educativo donde las historias cobran vida con tecnología 📖 Historias Interactivas Narrativas educativas que integran texto, audio, video y animación. 🎬 Recursos Multimedia Videos, imágenes,…Continue reading
/** * Elementor LCP Background Image Preloader v2.1 * * Extracts the EXACT URL from Elementor’s _elementor_data JSON * This ensures the preloaded URL matches what Elementor’s CSS requests * * WPCODE SETUP: * – Code Type: PHP Snippet *…Continue reading
/** * Critical Font Preloader for Elementor Sites v1.1 * Dynamically detects and preloads locally-hosted fonts */ if (!defined(‘ABSPATH’)) exit; define(‘CFPL_CACHE_DURATION’, 86400); define(‘CFPL_MAX_FONTS’, 6); define(‘CFPL_PRELOAD_EICONS’, true); add_action(‘wp_head’, ‘cfpl_output_font_preloads’, 1); function cfpl_output_font_preloads() { if (is_admin()) { return; } $cache_key = ‘cfpl_fonts_v1’;…Continue reading
/** * Pixelsz – Site Lock. Dit is ervoor bedoeld dat een website zonder overleg wordt verhuisd naar aan andere server. Hierdoor kunnen wij de licenties die gratis worden verstrekt bij een beheer en onderhoudscontract niet verwijderen voor de verhuizing…Continue reading