Docs: Fix code example for removing internal pointers.
Props daleharrison, swissspidy, garrett-eclipse, luciano-croce, jrf, desrosj. Fixes #45529. git-svn-id: https://develop.svn.wordpress.org/trunk@46381 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
271fc0d151
commit
7c1662cba0
@ -22,7 +22,14 @@ final class WP_Internal_Pointers {
|
||||
* remove_action( 'admin_enqueue_scripts', array( 'WP_Internal_Pointers', 'enqueue_scripts' ) );
|
||||
*
|
||||
* Individual pointers (e.g. wp390_widgets) can be disabled using the following:
|
||||
* remove_action( 'admin_print_footer_scripts', array( 'WP_Internal_Pointers', 'pointer_wp390_widgets' ) );
|
||||
*
|
||||
* function yourprefix_remove_pointers() {
|
||||
* remove_action(
|
||||
* 'admin_print_footer_scripts',
|
||||
* array( 'WP_Internal_Pointers', 'pointer_wp390_widgets' )
|
||||
* );
|
||||
* }
|
||||
* add_action( 'admin_enqueue_scripts', 'yourprefix_remove_pointers', 11 );
|
||||
*
|
||||
* @param string $hook_suffix The current admin page.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user