wpseo_notification_capability_check хук-фильтрYoast 3.2

Filter capability check to enable all or any capabilities.

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

add_filter( 'wpseo_notification_capability_check', 'wp_kama_wpseo_notification_capability_check_filter', 10, 2 );

/**
 * Function for `wpseo_notification_capability_check` filter-hook.
 * 
 * @param string             $capability_check The type of check that will be used to determine if an capability is present.
 * @param Yoast_Notification $notification     The notification object.
 *
 * @return string
 */
function wp_kama_wpseo_notification_capability_check_filter( $capability_check, $notification ){

	// filter...
	return $capability_check;
}
$capability_check(строка)
The type of check that will be used to determine if an capability is present.
$notification(Yoast_Notification)
The notification object.

Список изменений

С версии 3.2 Введена.

Где вызывается хук

Yoast_Notification::match_capabilities()
wpseo_notification_capability_check
yoast/admin/class-yoast-notification.php 254
$capability_check = apply_filters( 'wpseo_notification_capability_check', $this->options['capability_check'], $this );

Где используется хук в Yoast SEO

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