WP_Internal_Pointers::dismiss_pointers_for_new_users() WordPress Method

The WP_Internal_Pointers::dismiss_pointers_for_new_users() function is used to dismiss all pointers for new users. This function is called when a new user is created.

WP_Internal_Pointers::dismiss_pointers_for_new_users( int $user_id ) #

Prevents new users from seeing existing ‘new feature’ pointers.


Parameters

$user_id

(int)(Required)User ID.


Top ↑

Source

File: wp-admin/includes/class-wp-internal-pointers.php

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


Top ↑

Changelog

Changelog
VersionDescription
3.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.