add_action(‘template_redirect’, function () { if (isset($_GET[‘rd_test_wp_die’])) { if (!defined(‘DONOTCACHEPAGE’)) { define(‘DONOTCACHEPAGE’, true); } if (!defined(‘DONOTCACHEDB’)) { define(‘DONOTCACHEDB’, true); } if (!defined(‘DONOTMINIFY’)) { define(‘DONOTMINIFY’, true); } nocache_headers(); wp_die(‘This would be the default WordPress Admin Error Message.’); } });Continue reading
/** * Convert Uploaded Images to WebP Format * * This snippet converts uploaded images (JPEG, PNG, GIF) to WebP format * automatically in WordPress. Ideal for use in a theme’s functions.php file, * or with plugins like Code Snippets…Continue reading
/** * Convert Uploaded Images to WebP Format * * This snippet converts uploaded images (JPEG, PNG, GIF) to WebP format * automatically in WordPress. Ideal for use in a theme’s functions.php file, * or with plugins like Code Snippets…Continue reading
/* * MS GROUP WEBSITE — VERSION B * JavaScript — Scroll Reveal Animations * ============================================================ * Uses IntersectionObserver to fade elements up on scroll. * In WordPress, this can be replaced with: * – Elementor entrance animations (built-in) *…Continue reading
/** * Pixelsz – MU Plugins Monitor versie 2.1.3 * * Wijzigingen t.o.v. 2.0: * – Geen mail als issues identiek zijn aan de vorige scan * – Log bewaart maximaal 7 dagen gewone entries; meldingen met issues blijven altijd…Continue reading
/** * Add custom text to the Completed Order email for non-wholesale customers only. */ add_action( ‘woocommerce_email_before_order_table’, function( $order, $sent_to_admin, $plain_text, $email ) { // Only target the Completed Order email if ( ‘customer_completed_order’ !== $email->id ) { return; }…Continue reading
/** * Set featured image from the first /uploads/ image found in post content * for posts that do not already have a valid featured image. * * Usage: * Run batch: * /wp-admin/?idxc_run_featured_image_fix_batch=1&batch_size=50 * * Reset checked flag: *…Continue reading
add_action(‘template_redirect’, function () { if (is_admin()) return; global $wp; $request_path = trim($wp->request, ‘/’); // Skip if already under /stories/ if (strpos($request_path, ‘stories/’) === 0) return; // Only run on 404s (old URLs) if (is_404()) { // Extract slug (last part…Continue reading