WPSEO_Installation::__construct()publicYoast 1.0

Checks if Yoast SEO is installed for the first time.

Метод класса: WPSEO_Installation{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$WPSEO_Installation = new WPSEO_Installation();
$WPSEO_Installation->__construct();

Код WPSEO_Installation::__construct() Yoast 22.3

public function __construct() {
	$is_first_install = $this->is_first_install();

	if ( $is_first_install && WPSEO_Utils::is_api_available() ) {
		add_action( 'wpseo_activate', [ $this, 'set_first_install_options' ] );
	}
}