Yoast\WP\SEO\Content_Type_Visibility\Application
Content_Type_Visibility_Dismiss_Notifications::maybe_dismiss_notifications()
Checks if there are new content types or taxonomies.
Метод класса: Content_Type_Visibility_Dismiss_Notifications{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Content_Type_Visibility_Dismiss_Notifications = new Content_Type_Visibility_Dismiss_Notifications(); $Content_Type_Visibility_Dismiss_Notifications->maybe_dismiss_notifications( $new_content_types );
- $new_content_types(массив)
- The new content types.
По умолчанию: []
Код Content_Type_Visibility_Dismiss_Notifications::maybe_dismiss_notifications() Content Type Visibility Dismiss Notifications::maybe dismiss notifications Yoast 24.4
public function maybe_dismiss_notifications( $new_content_types = [] ) { $post_types_needs_review = ( \array_key_exists( 'new_post_types', $new_content_types ) ) ? $new_content_types['new_post_types'] : $this->options->get( 'new_post_types', [] ); $taxonomies_needs_review = ( \array_key_exists( 'new_taxonomies', $new_content_types ) ) ? $new_content_types['new_taxonomies'] : $this->options->get( 'new_taxonomies', [] ); if ( $post_types_needs_review || $taxonomies_needs_review ) { return; } $this->dismiss_notifications(); }