wp_robots
wp_robots ( No parameters )
- Introduced in WordPress: 5.7.0
- Deprecated in WordPress: —
Description
Displays the robots meta tag as necessary.Gathers robots directives to include for the current context, using the
{@see 'wp_robots'} filter. The directives are then sanitized, and the
robots meta tag is output if there is at least one relevant directive.