Yoast\WP\SEO\Conditionals

WP_Robots_Conditional{}Yoast 1.0

Class that checks if wp_robots exists.

Хуков нет.

Использование

$WP_Robots_Conditional = new WP_Robots_Conditional();
// use class methods

Методы

  1. public is_met()

Код WP_Robots_Conditional{} Yoast 19.2

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' );
	}
}