wpseo_notification_capability_check хук-фильтр . Yoast 3.2
Filter capability check to enable all or any capabilities.
Использование
add_filter( 'wpseo_notification_capability_check', 'filter_function_name_4034', 10, 2 ); function filter_function_name_4034( $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 | Введена. |
Где вызывается хук
wpseo_notification_capability_check
yoast/admin/class-yoast-notification.php 254
$capability_check = apply_filters( 'wpseo_notification_capability_check', $this->options['capability_check'], $this );