Category: Disable
Hide the ‘Screen Options’ Tab on admin bar
// Hide the admin ‘Screen Options’ tab add_filter(‘screen_options_show_screen’, ‘__return_false’);Continue reading
Disable wordpress big image scaling
add_filter(‘big_image_size_threshold’, ‘__return_false’ );Continue reading
Remove users from WP-JSON
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
Disable Rich Pins
Require a comments with rating (copy)
add_filter( ‘tasty_recipes_min_rating_without_comment’, function() { return 6; // Require comments for 4 and 5 star ratings too. } );Continue reading
Remove users from WP-JSON
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
Hotfix: Remove Stripe Statement Descriptor
/** * 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
Remove Zoom on WC product gallery
add_action( ‘wp’, function () { remove_theme_support( ‘wc-product-gallery-zoom’ ); }, 100 );Continue reading
Remove thumbnails from cart
add_filter( ‘woocommerce_cart_item_thumbnail’, ‘__return_false’ );Continue reading