/** * Let staff view the WP Mail SMTP Email Log and read sent emails, without being able * to delete, resend or export logs. * Edition: Pro (email logs are a Pro feature). Change ‘edit_others_posts’ to the * capability…Continue reading
/** * 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 / 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
/** * 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 / 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 / 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
// Change From Email / Kiri Vadivelu / 2026 add_filter( ‘wp_mail_from’, function ( $old ) { return ‘[email protected]’; // Replace with your email } ); add_filter( ‘wp_mail_from_name’, function ( $old ) { return ‘Super Dev’; // Replace with your name…Continue reading
// Add an “AI used” checkbox to the vendor’s own product edit form, after Tax Class (General tab) add_action( ‘wcv_product_options_tax’, function( $post_id ) { \WC_Vendors\Classes\Front\WCV_Form_Helper::input( array( ‘id’ => ‘_wcv_ai_generated’, ‘post_id’ => $post_id, ‘type’ => ‘checkbox’, ‘label’ => __( ‘This product…Continue reading
// List All URLs / Kiri Vadivelu / 2026 add_action(‘admin_menu’, ‘add_url_list_page’); function add_url_list_page() { add_management_page(‘All URLs’, ‘All URLs’, ‘manage_options’, ‘all-urls’, ‘display_all_urls’); } function display_all_urls() { $args = array( ‘post_type’ => array(‘post’, ‘page’), ‘post_status’ => ‘publish’, ‘numberposts’ => -1 ); $posts…Continue reading
/** * Seine Bio live login experience. * Customises presentation only; WordPress authentication remains unchanged. */ add_action( ‘login_enqueue_scripts’, function () { $wallpaper = ‘https://seinebio.com/wp-content/uploads/2026/10/exec-cf1886c8-b9df-48bb-bc7b-51e3d3af4ea9.png’; $logo = ‘https://seinebio.com/wp-content/uploads/2026/10/seine-bio-modern-single-line.png’; ?>Continue reading