if ( ! function_exists( ‘rd_disable_action_scheduler_default_runner’ ) ) { function rd_disable_action_scheduler_default_runner() { if ( class_exists( ‘ActionScheduler’ ) ) { remove_action( ‘action_scheduler_run_queue’, array( ActionScheduler::runner(), ‘run’ ) ); } } } add_action( ‘init’, ‘rd_disable_action_scheduler_default_runner’, 10 );Continue reading
add_filter( ‘sgo_ignored_query_params’, ‘add_sgo_ignored_query_params’); function add_sgo_ignored_query_params( $ignored_query_params ) { // List query parameters to ignore in addition to SiteGround Speed Optimizer default ignore-list. // WooCommerce Order-Received Redirection Order Attribution $ignored_query_params[] = ‘utm_nooverride’; // Third-Party or Plugin-Specific Parameters // MailChimp $ignored_query_params[] =…Continue reading
/** * Send Google Drive URLs to Google Sheets. * * Setup requirements: * – Entry storage ON (Disable storing entry information in WordPress = OFF) * – Purge Entries Automatically = ON, set to 1 day * – Google…Continue reading
add_filter( ‘sgo_javascript_combine_excluded_inline_content’, ‘js_combine_exclude_inline_script’ ); function js_combine_exclude_inline_script( $exclude_list ) { $exclude_list[] = ‘window.OneSignalDeferred = window.OneSignalDeferred’; $exclude_list[] = ‘FacebookSignal.init’; $exclude_list[] = ‘fbq(‘; $exclude_list[] = ‘document.currentScript?.remove’; // Part of Formidable Honeypot $exclude_list[] = “const style = document.createElement( ‘style’ )”; // Part of Formidable…Continue reading
/** * WPForms — Quantity-Aware Form Locker Inventory * * Makes WPForms Form Locker’s “Total Entry Limit” behave as a unit/inventory * counter instead of a submission counter. When a customer submits a form, * the quantity they selected is…Continue reading
add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading
/** * WPForms Quiz — Save results as Entry Note * * Automatically adds a note to each quiz entry with the quiz results. * Supports all three quiz types: Graded, Personality, and Weighted. * * @link https://wpforms.com/developers/wpforms_process_entry_save/ */ /**…Continue reading
/** * Customize the error message shown on the WPForms Password Reset form * when the reset link is invalid or expired. * * @link https://wpforms.com/developers/change-validation-messages-for-user-registration-addon/ * * @param string $message The default error message. * @return string */ function…Continue reading