/** * Start Remove Autofill Checkout **/ add_filter(‘woocommerce_checkout_get_value’, ‘prefix_return_empty_checkout’, 10, 2); function prefix_return_empty_checkout($value, $key) { // List of fields to clear $fields_to_clear = array( ‘billing_first_name’, ‘billing_last_name’, ‘billing_company’, ‘billing_country’, ‘billing_address_1’, ‘billing_address_2’, ‘billing_city’, ‘billing_state’, ‘billing_postcode’, ‘billing_phone’, ‘billing_email’, ‘shipping_first_name’, ‘shipping_last_name’, ‘shipping_company’, ‘shipping_country’, ‘shipping_address_1’,…Continue reading
// Hide the admin ‘Screen Options’ tab add_filter(‘screen_options_show_screen’, ‘__return_false’);Continue reading
add_filter(‘big_image_size_threshold’, ‘__return_false’ );Continue reading
add_filter(‘rest_endpoints’, function( $endpoints ) { if ( isset( $endpoints[‘/wp/v2/users’] ) ) { unset( $endpoints[‘/wp/v2/users’] ); } if ( isset( $endpoints[‘/wp/v2/users/(?P[\d]+)’] ) ) { unset( $endpoints[‘/wp/v2/users/(?P[\d]+)’] ); } return $endpoints; });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_filter(‘rest_endpoints’, function( $endpoints ) { if ( isset( $endpoints[‘/wp/v2/users’] ) ) { unset( $endpoints[‘/wp/v2/users’] ); } if ( isset( $endpoints[‘/wp/v2/users/(?P[\d]+)’] ) ) { unset( $endpoints[‘/wp/v2/users/(?P[\d]+)’] ); } return $endpoints; });Continue reading
/** * Ensures that a Statement Descriptor is not sent to the Stripe PaymentIntent creation process. * * This is a HOTFIX and is not intended for long-term use. We recommend updating to Easy Digital Downloads 3.2.8+ * * This…Continue reading
add_action( ‘wp’, function () { remove_theme_support( ‘wc-product-gallery-zoom’ ); }, 100 );Continue reading