function rd_watch_selected_wpf_meta_fields( $fields ) { $fields[] = ‘example_user_meta_name_1’; // Add real user meta field name/key $fields[] = ‘example_user_meta_name_1’; // Add real user meta field name/key $fields[] = ‘example_user_meta_name_1’; // Add real user meta field name/key, add more rows as required…Continue reading
add_filter( ‘charitable_default_donation_fields’, function( $fields ) { if ( isset( $fields[‘title’] ) ) { // Remove from the donation form entirely $fields[‘title’][‘donation_form’] = false; } return $fields; }, 20 );Continue reading
add_action( ‘template_redirect’, ‘rd_preload_marked_theme_background_images’, 1 ); function rd_preload_marked_theme_background_images() { if ( is_admin() || wp_doing_ajax() || wp_is_json_request() ) { return; } if ( defined( ‘REST_REQUEST’ ) && REST_REQUEST ) { return; } if ( is_feed() || is_trackback() || is_robots() || is_embed() )…Continue reading
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
/** * 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
/** * 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