Category: Disable
Disable filter added by the Caddy plugin that hides WooCommerce shipping rates
/** * Removes the ‘woocommerce_package_rates’ filter added by the Caddy plugin. * * Removes the filter that hides other WooCommerce shipping rates * when free shipping is available, allowing all rates to show. * * @author Mike Valera * @plugin…Continue reading
Untitled Snippet
Disable default WordPress image sizes
// Disable default WordPress image sizes add_filter(‘intermediate_image_sizes’, ‘__return_empty_array’); // Disable large scaled image size add_filter(‘big_image_size_threshold’, ‘__return_false’); // Disable WooCommerce image sizes and prevent WooCommerce from regenerating sizes add_action(‘after_setup_theme’, function () { // WooCommerce image sizes remove_image_size(‘woocommerce_thumbnail’); remove_image_size(‘woocommerce_single’); remove_image_size(‘woocommerce_gallery_thumbnail’); // Clear…Continue reading
MemberPress: Disable Unauthorized Redirection on a Specific Page or Post
function mepr_stop_unauthorized_redirect( $redirect, $url, $delim ) { global $post; if( $post->ID === 123 ) { $redirect = false; } return $redirect; } add_filter( ‘mepr-pre-run-rule-redirection’, ‘mepr_stop_unauthorized_redirect’, 10, 3) ;Continue reading
MemberPress: Disable the Unauthorized Redirection for Multiple Pages And/or Posts
function mepr_stop_unauthorized_redirect( $redirect, $url, $delim ) { global $post; if(in_array($post->ID, array( 123, 456, 789 ) ) ) { $redirect = false; } return $redirect; } add_filter( ‘mepr-pre-run-rule-redirection’, ‘mepr_stop_unauthorized_redirect’, 10, 3 );Continue reading
Memberpress: Remove the Navigation Links on Page
.memberpressproduct-template-default .navigation.post-navigation { display: none; }Continue reading
Disable All UpdraftPlus Email Notifications
/** * Comprehensive UpdraftPlus Email Notification Disabler * Add this code to your theme’s functions.php or WPCode * By: Empathy First Media */ // Master switches and initialization prevention add_filter(‘updraftplus_disable_all_mail_init’, ‘__return_true’); // Master switch to disable email initialization add_filter(‘updraftplus_email’, ‘__return_false’);…Continue reading
Disabilitazione wp v2 users rest api
// Disable /users rest routes 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
How to Add Diwali Celebration Animation in WordPress Website (copy)
<!– Add below HTML after start tag –> #diwali { position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 1000; } #fireworksContainer { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 999999; /*…Continue reading