Cannot remove action noindex in wordpress
问题 I've done some research and run up with this code remove_action('wp_head','noindex',1); but apparently it's not removing the <meta name="robots" content="noindex,follow"/> in my WordPress header. I'm using WordPress 4.2.3 回答1: 🥳 I found a solution that worked for me here: 👉 https://wordpress.org/support/topic/disable-noindex-on-certain-core-pages-2/ add_action( 'init', 'remove_wc_page_noindex' ); function remove_wc_page_noindex(){ remove_action( 'wp_head', 'wc_page_noindex' ); } This question