Exclude Cache Page

// Exclude Cache Page / Kiri Vadivelu / 2026 function exclude_cache_page() { $excluded_urls = array( ‘/client-portal/’, ‘/checkout/’, ‘/cart/’, ); $uri = parse_url( $_SERVER[‘REQUEST_URI’], PHP_URL_PATH ); foreach ( $excluded_urls as $url ) { if ( strpos( $uri, $url ) !== false…Continue reading

Exclude Caching Page

// Exclude Caching Page / Kiri Vadivelu / 2026 function exclude_caching_page() { $excluded_pages = array( 6, 57, 103 ); // ← your page IDs here if ( is_page( $excluded_pages ) ) { if ( ! defined( ‘DONOTCACHEPAGE’ ) ) {…Continue reading

Modal Google Search

if ( ! defined( ‘ABSPATH’ ) ) exit; function fso_render_shortcode( $atts ) { $atts = shortcode_atts( array( ‘icon_size’ => ’24’, ‘bg_color’ => ‘#f2f2f2’, ), $atts, ‘fullscreen_search’ ); $icon_size = absint( $atts[‘icon_size’] ); $bg_color = sanitize_hex_color( $atts[‘bg_color’] ) ? $atts[‘bg_color’] :…Continue reading

FC – Bloquear enumeración de usuarios

/** * Bloquear la enumeración de usuarios (WPCode: tipo PHP, “Ejecutar en todas partes”) * * Solo afecta a visitantes SIN sesión iniciada: el editor de bloques, Elementor * y el panel siguen usando /wp/v2/users con normalidad. * * Opción:…Continue reading

single post

/** * WPCode-Snippet (Shortcode): ein Beitrag als Teaser-Karte für konradin-v2. * Attribute: auswahl (id|thema), id, keywords, debug */ // Attribute absichern – fehlt eines in der WPCode-Liste, gibt es sonst Warnungen $auswahl = isset( $auswahl ) ? (string) $auswahl :…Continue reading

Custom Gmail SMTP

// Custom Gmail SMTP / Kiri Vadivelu / 2026 add_action(‘phpmailer_init’, ‘send_gmail_smtp’); function send_gmail_smtp($phpmailer) { $phpmailer->isSMTP(); $phpmailer->Host = ‘smtp.gmail.com’; $phpmailer->SMTPAuth = true; $phpmailer->Port = 587; // Use 465 for SSL, 587 for TLS $phpmailer->SMTPSecure = ‘tls’; // ‘ssl’ for port 465…Continue reading

woff-Dateien hochladen

/** * Erlaubt WOFF/WOFF2 Uploads in WordPress und macht sie für Divi Custom Fonts nutzbar. * Updatefest über WPCode. */ /** 1) WordPress: MIME Types für Uploads erweitern */ add_filter(‘upload_mimes’, function ($mimes) { $mimes[‘woff’] = ‘font/woff’; $mimes[‘woff2’] = ‘font/woff2’; return…Continue reading