How to Remove WordPress Version Number?

By default, WordPress leaves its footprints on your site for the sake of tracking. In sometimes this footprint might be a security leak on your site if you are not running the most updated version of WordPress. There are two ways. 1. Custom code in function.php remove_action(‘wp_head’, ‘wp_generator’); add_filter(‘the_generator’, function(){ return ”; }); 2. Using […]

How to Disable Dashicons in WordPress?

Dashicons is the official icon font of the WordPress. There are two ways. 1. Custom code in function.php add_action(‘wp_enqueue_scripts’, ‘ec_disable_dashicons’); function ec_disable_dashicons(){ if(!is_user_logged_in()) { wp_dequeue_style(‘dashicons’); wp_deregister_style(‘dashicons’); } } 2. Using EC Addons

How to Disable XMLRPC.PHP FOR WORDPRESS?

XML-RPC for WordPress was designed to enable remote connections between your site and external applications. WHY SHOULD I DISABLE XML-RPC? There are security risks associated with leaving XML-RPC enabled. These can include: Brute Force Attacks and DDoS Attack There are two ways. 1. Custom code in function.php add_filter(‘xmlrpc_enabled’, ‘__return_false’); add_filter(‘wp_headers’, ‘removeXPingback’); add_filter(‘pings_open’, ‘__return_false’, 9999); function […]

How to Disable EMOJIS in WordPress?

They are smileys used on the Internet. If you don’t use it, Emojis script (wp-emoji-release.min.js) in WordPress creates an extra request, which adds to total page load time, and slows down your WordPress site. Professional website never use it. For more info https://wordpress.org/support/article/emoji/ There are two ways. 1. Custom code in function.php add_action( ‘init’, ‘ec_emoji_scripts’ […]

How to Disable Trackbacks and Pings or Self Pingbacks on WordPress?

Trackbacks and Pings or Self Pingbacks allow blogs to notify each other that they have linked to a post. However, today it is mainly used by spammers to send trackbacks from spam websites. There are two ways. 1. Custom code in function.php function ec_disable_self_pingbacks( &$links ) { foreach ( $links as $l => $link ) […]

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