robots_txt, , true
robots_txt, , true
Appears in: all-in-one-seo-pack.5.0.0.1
Hook Type: filter
Displaying hooks found in version: all-in-one-seo-pack.5.0.0.1apply_filters('robots_txt, , true') is found 1 times:
- /app/Common/Sitemap/Helpers.php line 574
*/ public function extractSitemapUrlsFromRobotsTxt() { // First, we need to remove our filter, so that it doesn't run unintentionally. remove_filter( 'robots_txt', [ aioseo()->robotsTxt, 'buildRules' ], 10000 ); $robotsTxt = apply_filters( 'robots_txt', '', true ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound add_filter( 'robots_txt', [ aioseo()->robotsTxt, 'buildRules' ], 10000 ); if ( ! $robotsTxt ) { return []; }