Disable delayed customer recalculations

/** * Bypasses the CRON event that is scheduled 5 minutes after a purchase that recalculates a customers stats. * * Note: This may impact the performance of the checkout process. */ add_filter( ‘edd_recalculate_bypass_cron’, ‘__return_true’ );Continue reading

Site Security & Optimization

// Disable Yoast SEO HTML Comments add_filter(‘wpseo_debug_markers’, ‘__return_false’); // Disable XML-RPC add_filter(‘xmlrpc_enabled’, ‘__return_false’); // Remove WordPress Version Number add_filter(‘the_generator’, ‘__return_empty_string’); // Disable Plugin & Theme Editor if (!defined(‘DISALLOW_FILE_EDIT’)) { define(‘DISALLOW_FILE_EDIT’, true); } // Disable Author Archives add_action(‘template_redirect’, function(){ global $wp_query;…Continue reading

Add recaptcha policy to all gravity forms

add_filter( ‘gform_submit_button’, ‘add_recaptcha_branding’, 10, 2 ); function add_recaptcha_branding( $button, $form ) { return $button .= ‘ This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. ‘; }Continue reading