Skip to content

Instantly share code, notes, and snippets.

iLen iLenTheme

  • iLen
View GitHub Profile
@iLenTheme
iLenTheme / gga-wp-remove-meta-feeds-pagination.php
Created Jun 24, 2017 — forked from petenelson/gga-wp-remove-meta-feeds-pagination.php
WordPress: Remove generator and feed links meta tags
View gga-wp-remove-meta-feeds-pagination.php
/*
Remove meta tags for generator, feed links, and pagination
Useful for landing pages or static, stand-alone sites/pages.
*/
remove_action( 'wp_head', 'wp_generator');
remove_action( 'wp_head', 'feed_links', 2 );
remove_action( 'wp_head', 'feed_links_extra', 3 );
remove_action( 'wp_head', 'rsd_link'); // EditURI
remove_action( 'wp_head', 'wlwmanifest_link'); // Windows Live Writer
You can’t perform that action at this time.