wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_robots_noindex_embeds › WordPress Function

Od5.7.0
Przestarzałyn/a
wp_robots_noindex_embeds ( $robots )
Parametry:
  • (array) $robots Associative array of robots directives.
    Wymagane: Tak
Zobacz:
Powrót:
  • (array) Filtered robots directives.
Zdefiniowane na:
Codex:

Adds `noindex` to the robots meta tag for embeds.

Typical usage is as a {@see 'wp_robots'} callback: add_filter( 'wp_robots', 'wp_robots_noindex_embeds' );


Źródło

function wp_robots_noindex_embeds( array $robots ) {
	if ( is_embed() ) {
		return wp_robots_no_robots( $robots );
	}

	return $robots;
}