Make WordPress Core

Ticket #45529: 45529.5.diff

File 45529.5.diff, 1.0 KB (added by garrett-eclipse, 4 years ago)

Refreshed to include yourprefix_ and change to a more generic function name which is also shorter

  • src/wp-admin/includes/class-wp-internal-pointers.php

     
    2222         *     remove_action( 'admin_enqueue_scripts', array( 'WP_Internal_Pointers', 'enqueue_scripts' ) );
    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' ) );
    2625         *
     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 );
     33         *
    2734         * @param string $hook_suffix The current admin page.
    2835         */
    2936        public static function enqueue_scripts( $hook_suffix ) {