Yoast SEO Premium – Disable Automatic Redirects & Notices

// Prevent automatic redirects for post and taxonomy URL changes. add_filter( ‘Yoast\WP\SEO\post_redirect_slug_change’, ‘__return_true’ ); add_filter( ‘Yoast\WP\SEO\term_redirect_slug_change’, ‘__return_true’ ); // Suppress redirect notices for URL changes, deletion and restoration. add_filter( ‘Yoast\WP\SEO\enable_notification_post_slug_change’, ‘__return_false’ ); add_filter( ‘Yoast\WP\SEO\enable_notification_term_slug_change’, ‘__return_false’ ); add_filter( ‘Yoast\WP\SEO\enable_notification_post_trash’, ‘__return_false’ );…Continue reading

lokalstolz | Grundschutz

/** * lokalstolz | Grundschutz * Version 1.0.0 (16.11.2026) * * Kleiner Schutz auf WordPress-Ebene fuer Seiten, deren Server wir nicht selbst verwalten: * – XML-RPC aus (beliebter Weg fuer Passwort-Raten) * – Benutzerliste der REST-Schnittstelle (wp/v2/users) nur fuer angemeldete…Continue reading

lokalstolz | Keine Google Fonts

/* * WPCode-Snippet “lokalstolz | Keine Google Fonts” (Typ php, Location everywhere, Auto-Insert an) * Grundsatz [Martin 16.11.2026]: Schriften immer vom eigenen Server, nie von Google, in allen Projekten. * Oxygen 6 / Breakdance hat dafuer keinen Schalter in den…Continue reading

lokalstolz | Seitenwechsel

/* * WPCode-Snippet “lokalstolz | Seitenwechsel” (Typ php, Location everywhere, Auto-Insert an) * Bibliotheks-Snippet, Standard fuer lokalstolz-Webseiten [Martin 13.11.2026: Seitenwechsel weich statt ruckartig, keine grosse Animation; * als Standard auch fuer andere Webseiten, je Projekt anpassbar]. Erster Einsatz: lokalstolz.de. *…Continue reading

lokalstolz | Rank Math liest Vorlagen-Seiten

/* * WPCode-Snippet “lokalstolz | Rank Math liest Vorlagen-Seiten” (Typ php, Location everywhere, Auto-Insert an) * Oxygen 6 gibt Rank Math den Seiteninhalt nur fuer Seiten im Builder-Modus. Seiten, die eine Oxygen-Vorlage * mit ACF-Feldern rendert (z. B. Haus-Seiten), analysiert…Continue reading

lokalstolz | Usercentrics-Entwurf auf Dev

/* * WPCode-Snippet “lokalstolz | Usercentrics-Entwurf auf Dev” (Typ php, Location everywhere, Auto-Insert an) * Allgemein fuer alle Kundenprojekte, gepflegt ueber die WPCode-Bibliothek. * Gehoert NUR auf Dev (Host-Pruefung lokalstolz-developing.de). Auf Live und im Studio-WordPress wirkungslos, * trotzdem beim Go-live…Continue reading

lokalstolz | Bewegung reduzieren

/* * WPCode-Snippet “lokalstolz | Bewegung reduzieren” (Typ php, Location everywhere, Auto-Insert an) * Allgemeines Bibliotheks-Snippet, Vorlage stack/wpcode-bewegung-reduzieren.php der web-wissensbasis. * Was es tut: Hat der Besucher im Betriebssystem “Bewegung reduzieren” eingeschaltet (prefers-reduced-motion: reduce), * laufen CSS-Animationen und -Uebergaenge der…Continue reading

Add Custom Post Selector Avada

/** * Curated Post Grid for Avada Builder * Version 1.3 * * WPCode: PHP Snippet > Auto Insert > Run Everywhere * No opening PHP tag required. */ if (!defined(‘ABSPATH’)) { return; } /** * Published posts for the…Continue reading

FI Portali eventi – ricerca, verifica e riconoscimento dei portali già collegati 19022

if(!defined(‘ABSPATH’))exit; if(!class_exists(‘FI_Portal_Sources_0001′)){ final class FI_Portal_Sources_0001{ const OPT=’fi_portal_sources_0001′;const REMOVED=’fi_portal_sources_removed_0001′;const DAILY=’fi_portal_sources_daily_0001′;const ONE=’fi_portal_source_scan_0001’; static function boot(){ add_action(‘init’,[__CLASS__,’schedule’]);add_action(self::DAILY,[__CLASS__,’daily’]);add_action(self::ONE,[__CLASS__,’scan’]); add_action(‘admin_post_fi_portal_preview’,[__CLASS__,’preview’]);add_action(‘admin_post_fi_portal_add’,[__CLASS__,’add’]);add_action(‘admin_post_fi_portal_check’,[__CLASS__,’check’]);add_action(‘admin_post_fi_portal_toggle’,[__CLASS__,’toggle’]);add_action(‘admin_post_fi_portal_delete’,[__CLASS__,’remove’]); add_action(‘admin_footer’,[__CLASS__,’panel’],10010);add_action(‘fi_issec_continue_0001′,[__CLASS__,’issec_continue’]);add_action(‘fi_bologna_continue_0001′,[__CLASS__,’bologna_continue’]);add_action(‘fi_email_import_tick_0001′,[__CLASS__,’issec_repair_pending’],35);add_action(‘fi_ical_continue_0001′,[__CLASS__,’bologna_continue’]); } static function all(){return (array)get_option(self::OPT,[]);} static function put($id,$r){if(isset(((array)get_option(self::REMOVED,[]))[$id]))return;$s=self::all();$s[$id]=$r;update_option(self::OPT,$s,false);} static function guard(){if(!class_exists(‘FI_Gmail_Connect_0001’)||!FI_Gmail_Connect_0001::owner())wp_die(‘Accesso riservato.’,403);} static function back(){wp_safe_redirect(admin_url(‘admin.php?page=fi-eventi-email-0001#fi-portal-sources’));exit;} static function valid($u){return class_exists(‘FI_Web_Events_0001’)&&FI_Web_Events_0001::valid($u)&&!wp_parse_url($u,PHP_URL_PASS);} static function schedule(){ if(class_exists(‘FI_Web_Events_0001’)&&get_option(self::OPT,null)===null){ $rows=[];$s=get_option(FI_Web_Events_0001::OPT,[]);foreach($s[‘sources’]??FI_Web_Events_0001::defaults()…Continue reading