yoast_display_gutenberg_compat_notification
Filter: yoast_display_gutenberg_compat_notification Allows developer to disable the Gutenberg compatibility notification.
Использование
add_filter( 'yoast_display_gutenberg_compat_notification', 'wp_kama_yoast_display_gutenberg_compat_notification_filter' );
/**
* Function for `yoast_display_gutenberg_compat_notification` filter-hook.
*
* @param bool $display_notification
*
* @return bool
*/
function wp_kama_yoast_display_gutenberg_compat_notification_filter( $display_notification ){
// filter...
return $display_notification;
}
- $display_notification(true|false)
- -
Где вызывается хук
yoast_display_gutenberg_compat_notification
yoast/admin/class-admin-gutenberg-compatibility-notification.php 63
$display_notification = apply_filters( 'yoast_display_gutenberg_compat_notification', true );