YoastWPSEOregister_robots_rules

YoastWPSEOregister_robots_rules

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-seo.22.3

do_action('YoastWPSEOregister_robots_rules') is found 1 times:

  • /src/integrations/front-end/robots-txt-integration.php line 108
    		 * Allow registering custom robots rules to be outputted within the Yoast content block in robots.txt.
    		 *
    		 * @param Robots_Txt_Helper $robots_txt_helper The Robots_Txt_Helper object.
    		 */
    		\do_action( 'Yoast\WP\SEO\register_robots_rules', $this->robots_txt_helper );
    
    		return \trim( $robots_txt . \PHP_EOL . $this->robots_txt_presenter->present() . \PHP_EOL );
    	}
    
    	/**
    	 * Add a disallow rule for search to robots.txt.
    

See this hook used in plugins: