WPSEO_Admin::initialize_cornerstone_content()protectedYoast 1.0

Loads the cornerstone filter.

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

Хуков нет.

Возвращает

WPSEO_WordPress_Integration[]. The integrations to initialize.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->initialize_cornerstone_content();

Код WPSEO_Admin::initialize_cornerstone_content() Yoast 22.4

protected function initialize_cornerstone_content() {
	if ( ! WPSEO_Options::get( 'enable_cornerstone_content' ) ) {
		return [];
	}

	return [
		'cornerstone_filter' => new WPSEO_Cornerstone_Filter(),
	];
}