Yoast\WP\SEO\Conditionals\Third_Party

TranslatePress_Conditional{}Yoast 1.0

Conditional that is only met when the TranslatePress plugin is active.

Хуков нет.

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

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

Методы

  1. public is_met()

Код TranslatePress_Conditional{} Yoast 24.0

class TranslatePress_Conditional implements Conditional {

	/**
	 * Checks whether the TranslatePress plugin is active.
	 *
	 * @return bool Whether the TranslatePress plugin is active.
	 */
	public function is_met() {
		return \class_exists( 'TRP_Translate_Press' );
	}
}