WordPress.org

Make WordPress Core

Changeset 46381


Ignore:
Timestamp:
10/03/2019 08:38:08 PM (2 months ago)
Author:
desrosj
Message:

Docs: Fix code example for removing internal pointers.

Props daleharrison, swissspidy, garrett-eclipse, luciano-croce, jrf, desrosj.
Fixes #45529.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-internal-pointers.php

    r44787 r46381  
    2323     *
    2424     * Individual pointers (e.g. wp390_widgets) can be disabled using the following:
    25      *     remove_action( 'admin_print_footer_scripts', array( 'WP_Internal_Pointers', 'pointer_wp390_widgets' ) );
     25     *
     26     *    function yourprefix_remove_pointers() {
     27     *        remove_action(
     28     *            'admin_print_footer_scripts',
     29     *            array( 'WP_Internal_Pointers', 'pointer_wp390_widgets' )
     30     *        );
     31     *    }
     32     *    add_action( 'admin_enqueue_scripts', 'yourprefix_remove_pointers', 11 );
    2633     *
    2734     * @param string $hook_suffix The current admin page.
Note: See TracChangeset for help on using the changeset viewer.