WPSEO_Capability_Manager_Integration::get_capabilities()publicYoast 1.0

Get the Yoast SEO capabilities. Optionally append them to an existing array.

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

Хуки из метода

Возвращает

Массив.

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

$WPSEO_Capability_Manager_Integration = new WPSEO_Capability_Manager_Integration();
$WPSEO_Capability_Manager_Integration->get_capabilities( $caps );
$caps(массив)
Optional existing capability list.
По умолчанию: []

Код WPSEO_Capability_Manager_Integration::get_capabilities() Yoast 24.0

public function get_capabilities( array $caps = [] ) {
	if ( ! did_action( 'wpseo_register_capabilities' ) ) {
		do_action( 'wpseo_register_capabilities' );
	}

	return array_merge( $caps, $this->manager->get_capabilities() );
}