WP_Internal_Pointers::dismiss_pointers_for_new_users()public staticWP 3.3.0

Prevents new users from seeing existing 'new feature' pointers.

Method of the class: WP_Internal_Pointers{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WP_Internal_Pointers::dismiss_pointers_for_new_users( $user_id );
$user_id(int) (required)
User ID.

Changelog

Since 3.3.0 Introduced.

WP_Internal_Pointers::dismiss_pointers_for_new_users() code WP 6.5.4

public static function dismiss_pointers_for_new_users( $user_id ) {
	add_user_meta( $user_id, 'dismissed_wp_pointers', '' );
}