wpseek.com
A WordPress-centric search engine for devs and theme authors



robots_txt › WordPress Filter Hooks

Since3.0.0
Deprecatedn/a
apply_filters( 'robots_txt', $output, $public )
Parameters: (2)
  • () output The robots.txt output.
    Required: Yes
  • () public Whether the site is considered "public".
    Required: Yes
Defined at:
Codex:

Filters the robots.txt output.





Source

echo apply_filters( 'robots_txt', $output, $public );