Disable GoDaddy SSO
add_action( ‘plugins_loaded’, function() { add_filter( ‘wpaas_gd_sso_button_enabled’, ‘__return_false’, 99999999, 1 ); } );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_action( ‘plugins_loaded’, function() { add_filter( ‘wpaas_gd_sso_button_enabled’, ‘__return_false’, 99999999, 1 ); } );Continue reading
/* Remove new user email for admin and user on Registration form */ remove_action( ‘edd_insert_user’, ‘edd_new_user_notification’, 10, 2 ); /* Remove new user email for admin and user on Checkout Registration form */ add_action( ‘edd_pre_process_purchase’, ‘prefix_remove_user_emails’ ); function prefix_remove_user_emails() {…Continue reading
class EDD_Force_Login_And_Email { function __construct() { add_action( ‘plugins_loaded’, array( $this, ‘load’ ) ); } public function load() { add_filter( ‘edd_file_download_has_access’, array( $this, ‘check_access’ ), 9999, 3 ); } public function check_access( $has_access, $payment, $args ) { if( ! is_user_logged_in() )…Continue reading
function mepr_remove_state_field() { global $post; $mepr_options = MeprOptions::fetch(); $is_product_page = ( false !== ( $prd = MeprProduct::is_product_page($post) ) ); if( $mepr_options->global_styles || $is_product_page ) { ?>Continue reading
/** * Ensures the “Jump to Recipe” button is added above the featured image. */ add_action( ‘init’, function(){ if ( method_exists( ‘Tasty_Recipes\Shortcodes’, ‘filter_the_content_late’ ) ) { remove_filter( ‘the_content’, array( ‘Tasty_Recipes\Shortcodes’, ‘filter_the_content_late’ ), 100 ); add_action( ‘genesis_before_entry_content’, function() { echo Tasty_Recipes\Shortcodes::filter_the_content_late(…Continue reading
/** * Ensures the “Jump to Recipe” button is added to the content really late. */ add_action( ‘init’, function() { if ( method_exists( ‘Tasty_Recipes\Shortcodes’, ‘filter_the_content_late’ ) ) { remove_filter( ‘the_content’, array( ‘Tasty_Recipes\Shortcodes’, ‘filter_the_content_late’ ), 100 ); add_filter( ‘the_content’, array( ‘Tasty_Recipes\Shortcodes’,…Continue reading
add_filter( ‘tasty_recipes_min_rating_without_comment’, function() { return 6; // Require comments for 4 and 5 star ratings too. } );Continue reading
add_action( ‘woocommerce_email_order_meta’, function( $order, $sent_to_admin, $plain_text, $email ) { // Check if coupon is used in order if ( $order->get_used_coupons() ) { // Get the coupon codes used in the order $coupon_codes = implode( ‘, ‘, $order->get_used_coupons() ); // Set…Continue reading
// Register the smart tag. add_filter( ‘wpforms_smart_tags’, static function( $tags ) { // Key is the tag, value is the tag name. $tags[‘current_time’] = ‘Current Date/Time’; return $tags; } ); // Replace its value on form render on front-end. add_filter(…Continue reading
add_action( ‘wpforms_frontend_output_success’, static function ( $form_data, $fields, $entry_id ) { unset( $_GET[‘wpforms_return’], $_POST[‘wpforms’][‘id’] ); // If you want to preserve the user entered values in form fields – remove the line below. unset( $_POST[‘wpforms’][‘fields’] ); // Actually render the form.…Continue reading