Yoast\WP\SEO\Conditionals
WP_Robots_Conditional{}
Class that checks if wp_robots exists.
Хуков нет.
Использование
$WP_Robots_Conditional = new WP_Robots_Conditional(); // use class methods
Методы
- public is_met()
Код WP_Robots_Conditional{} WP Robots Conditional{} Yoast 24.9
class WP_Robots_Conditional implements Conditional { /** * Checks if the wp_robots function exists. * * @return bool True when the wp_robots function exists. */ public function is_met() { return \function_exists( 'wp_robots' ); } }