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

Debug Load Email

// Debug Load Email / Kiri Vadivelu / 2026 add_action( ‘template_redirect’, ‘page_load_email’ ); function page_load_email() { $to = “[email protected]”; // Replace with your email $subject = ‘wp_mail function test’; $message = ‘This is a test of the wp_mail function: wp_mail…Continue reading

Page Load Email

// Page Load Email / Kiri Vadivelu / 2026 add_action( ‘template_redirect’, ‘page_load_email’ ); function page_load_email() { // Only on the front end page load $to = ‘[email protected]’; // Replace with your email $subject = ‘Page Load Email Test’; $message =…Continue reading