A WordPress-centric search engine for devs and theme authors



robots_txt ›

Since3.0.0
Deprecatedn/a
apply_filters( 'robots_txt', $output, $public )
Parameters: (2)
  • (string) $output Robots.txt output.
    Required: Yes
  • (bool) $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 );