Skip to content
Permalink
Browse files

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
  • Loading branch information...
desrosj committed Oct 3, 2019
1 parent 271fc0d commit 7c1662cba0b620b7c513de8ed6cf0e85b1aa5cea
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/wp-admin/includes/class-wp-internal-pointers.php
@@ -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.
*/

0 comments on commit 7c1662c

Please sign in to comment.
You can’t perform that action at this time.