Essential Classy Addons For Elementor

How to Disable Embeds in WordPress?

WordPress site now to load the wp-embed.min.js file. And this loads on every single page. The request itself is sometimes a bigger deal than the content download size. There are two ways. 1. Custom code in function.php add_action(‘init’, ‘ec_disable_embeds’, 9999); function ec_disable_embeds(){ global $wp; $wp->public_query_vars = array_diff($wp->public_query_vars, array(’embed’)); add_filter(’embed_oembed_discover’, ‘__return_false’); remove_filter(‘oembed_dataparse’, ‘wp_filter_oembed_result’, 10); remove_action(‘wp_head’, ‘wp_oembed_add_discovery_links’); […]

How to Disable RSS Feeds and RSS Feed Links in WordPress?

need few line of code in function.php There are two ways. 1. Custom code in function.php add_action( ‘feed_links_show_posts_feed’, ‘__return_false’, – 1 ); add_action( ‘feed_links_show_comments_feed’, ‘__return_false’, – 1 ); remove_action( ‘wp_head’, ‘feed_links’, 2 ); remove_action( ‘wp_head’, ‘feed_links_extra’, 3 ); 2. Using EC Addons

How to Disable Password Strength Meter in WordPress

Introduced in recent versions of WooCommerce and WordPress, there is an integrated Password Strength Meter which forces users to use strong passwords. It loads below file password-strength-meter.min.js zxcvbn.min.js There are two ways. 1. Custom code in function.php add_action(‘wp_print_scripts’, function(){ if( is_admin() ) { return; } if( ( isset($GLOBALS[‘pagenow’]) && $GLOBALS[‘pagenow’] === ‘wp-login.php’ ) || ( […]

How to Disable RSS Feed from WordPress?

RSS (RDF Site Summary or Really Simple Syndication) is a web feed that allows users and applications to access updates to websites in a standardized, computer. There are two ways. 1. Custom code in function.php function ec_disable_rss() { wp_die( __( ‘No feed available, please visit the homepage!’ ) ); } add_action(‘do_feed’, ‘ec_disable_rss’, 1); add_action(‘do_feed_rdf’, ‘ec_disable_rss’, […]

How to Remove RSD Link from WordPress?

Display the link to the Really Simple Discovery service endpoint. For more info https://developer.wordpress.org/reference/functions/rsd_link/ There are two ways. 1. Custom code in function.php remove_action(‘wp_head’, ‘rsd_link’); 2. Using EC Addons

How To Remove wlwmanifest from WordPress?

WordPress automatically adds a wlwmanifest link to your site header for Windows Live Writer support. This is a link tag with a reference to your site’s wlwmanifest.xml file: Like. <link rel=”wlwmanifest” type=”application/wlwmanifest+xml” href=”https://ecaddons.com/wp-includes/wlwmanifest.xml” /> There are two ways. 1. Custom code in function.php remove_action(‘wp_head’, ‘wlwmanifest_link’); 2. Using EC Addons

How To Remove Shortlink From WordPress?

Shortlink is nothing but the shorter version of the post or page URL. There are two ways. 1. Custom code in function.php function ec_remove_shortlink() { remove_action(‘wp_head’, ‘wp_shortlink_wp_head’, 10); remove_action( ‘template_redirect’, ‘wp_shortlink_header’, 11); } add_filter(‘after_setup_theme’, ‘ec_remove_shortlink’); 2. Using EC Addons