wp_no_robots

Advertisement

Summery Summery

Display a noindex meta tag.

Syntax Syntax

wp_no_robots()

Description Description

Outputs a noindex meta tag that tells web robots not to index the page content. Typical usage is as a ‘wp_head’ callback. add_action( ‘wp_head’, ‘wp_no_robots’ );

Source Source

File: wp-includes/general-template.php

		'singletitle'   => __( '%1$s %2$s %3$s Comments Feed' ),
		/* translators: 1: Blog name, 2: Separator (raquo), 3: Category name. */
		'cattitle'      => __( '%1$s %2$s %3$s Category Feed' ),
		/* translators: 1: Blog name, 2: Separator (raquo), 3: Tag name. */
		'tagtitle'      => __( '%1$s %2$s %3$s Tag Feed' ),
		/* translators: 1: Blog name, 2: Separator (raquo), 3: Term name, 4: Taxonomy singular name. */
		'taxtitle'      => __( '%1$s %2$s %3$s %4$s Feed' ),
		/* translators: 1: Blog name, 2: Separator (raquo), 3: Author name. */

Advertisement

Changelog Changelog

Changelog
Version Description
5.3.0 Echo "noindex,nofollow" if search engine visibility is discouraged.
3.3.0 Introduced.

Advertisement

Leave a Reply