Increase SMS batch size
add_filter( ‘bwfan_broadcast_sms_per_second_limit’, function () { return 10; } );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘bwfan_broadcast_sms_per_second_limit’, function () { return 10; } );Continue reading
add_action(‘save_post_shop_coupon’, function($post_id, $post, $update) { if (wp_is_post_revision($post_id) || wp_is_post_autosave($post_id)) { return; } if ($post->post_type !== ‘shop_coupon’) { return; } if ($post->post_status !== ‘publish’ && $post->post_status !== ‘draft’ && $post->post_status !== ‘pending’) { return; } if (get_post_meta($post_id, ‘_tune_imported’, true)) { return;…Continue reading
add_filter( ‘action_scheduler_default_cleaner_statuses’, function ( $statuses ) { $statuses[] = ‘failed’; return $statuses; } ); add_filter( ‘action_scheduler_retention_period’, ‘custom_action_scheduler_retention’ ); /** * Change Action Scheduler default purge to 1 day */ function custom_action_scheduler_retention() { return DAY_IN_SECONDS; // DAY_IN_SECONDS is a built-in WordPress…Continue reading
/** * Scoped From header override for Magic Login Pro emails only. * * Conditions: * – Subject contains “Log in to” * – Body contains Magic Login expiry string */ add_filter(‘wp_mail’, function ($args) { $subject = isset($args[‘subject’]) ? (string)…Continue reading
if ( ! function_exists( ‘rw_geo_search_after_header_1280_mobile’ ) ) { add_action( ‘kadence_after_header’, ‘rw_geo_search_after_header_1280_mobile’ ); function rw_geo_search_after_header_1280_mobile() { if ( is_admin() ) { return; } echo ‘ ‘; echo ‘ ‘; echo do_shortcode( ‘[geo_search_mobile]’ ); echo ‘ ‘; echo ‘ ‘; } }Continue reading
/** * Cortex Pages & Posts SEO Meta API – REST Endpoints for RankMath SEO Data * v2.2 – Added audit-list endpoint for lightweight content inventory * * For meta titles, descriptions, excerpts, focus keywords, and categories. * Works with…Continue reading
// Disable plugin update emails add_filter( ‘auto_plugin_update_send_email’, ‘__return_false’ ); // Disable theme update emails add_filter( ‘auto_theme_update_send_email’, ‘__return_false’ ); // Disable core update emails add_filter( ‘auto_core_update_send_email’, ‘__return_false’ );Continue reading
// Only load these helpers when WP All Import is running (admin/cron/cli), // or when explicitly requested via a filter. if ( !defined(‘WP_CLI’) && !wp_doing_cron() ) { // If we’re not in admin, no need. if ( !is_admin() ) {…Continue reading
/** * Charitable Email Preview Debug Tool (WPCode-ready) * * WPCODE INSTRUCTIONS: * 1. Install WPCode plugin (Insert Headers and Footers) * 2. Code Snippets → + Add Snippet → “Add Your Custom Code (New Snippet)” * 3. Title: “Charitable…Continue reading