noindex
noindex ( No parameters )
- Introduced in WordPress: 2.1.0
- Deprecated in WordPress: 5.7.0
Description
Displays a noindex meta tag if required by the blog configuration.If a blog is marked as not being public then the noindex meta tag will be
output to tell web robots not to index the page content. Add this to the
{@see 'wp_head'} action.
Typical usage is as a {@see 'wp_head'} callback:
add_action( 'wp_head', 'noindex' );