Server Response Headers Contain Strict-Transport-Security
// Server Response Headers Contain Strict-Transport-Security header(‘Strict-Transport-Security: max-age=31536000;’);Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
// Server Response Headers Contain Strict-Transport-Security header(‘Strict-Transport-Security: max-age=31536000;’);Continue reading
// Disable the Plugin and Theme Editor if ( ! defined( ‘DISALLOW_FILE_EDIT’ ) ) { define( ‘DISALLOW_FILE_EDIT’, true ); }Continue reading
remove_action( ‘xmlrpc_rsd_apis’, ‘rest_output_rsd’ ); remove_action( ‘wp_head’, ‘rest_output_link_wp_head’ ); remove_action( ‘template_redirect’, ‘rest_output_link_header’, 11 );Continue reading
add_filter(‘wp_is_application_passwords_available’, ‘__return_false’);Continue reading
// Register the meta box function add_menu_order_meta_box() { add_meta_box( ‘menu_order_meta_box’, // Unique ID ‘Menu Order’, // Box title ‘display_menu_order_meta_box’, // Content callback ‘post’, // Post type ‘side’, // Context ‘default’ // Priority ); } add_action(‘add_meta_boxes’, ‘add_menu_order_meta_box’); // Display the meta…Continue reading
/** * Shows how to add a custom text box in a donation form. * In this example, we are adding a text box to collect a special referral code that the admin can read later. * * This snippet…Continue reading
Loading the Elevenlabs Text to Speech AudioNative Player…Continue reading
function allow_mc_through( $block, $post, $uri ) { if( isset( $_GET[‘allow_mailchimp’] ) ) { $block = false; } return $block; } add_filter( ‘mepr-pre-run-rule-content’, ‘allow_mc_through’, 11, 3 );Continue reading
function remove_plugin_filter() { remove_filter( ‘woocommerce_product_is_visible’, ‘MeprRulesCtrl::override_wc_is_visible’, 11, 2); remove_filter( ‘woocommerce_variation_is_visible’, ‘MeprRulesCtrl::override_wc_is_visible’, 11, 4); } add_action( ‘plugins_loaded’, ‘remove_plugin_filter’ );Continue reading
/* Disable WordPress Admin Bar for all users */ add_filter( ‘show_admin_bar’, ‘__return_false’ );Continue reading