Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#28501 closed enhancement (wontfix)

Add a filter for registered pointers

Reported by: ericlewis's profile ericlewis Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3
Component: Administration Keywords:
Focuses: Cc:

Description

Deregistering a default WordPress pointer:

<?php

function disable_pointers() {
        $pointers_to_remove = array( 'wp350_media' );
        foreach( $pointers_to_remove as $pointer ) {
                remove_action( 'admin_print_footer_scripts', array( 'WP_Internal_Pointers', 'pointer_' . $pointers_to_remove ) );       
        }
}
add_action( 'admin_enqueue_scripts', 'disable_pointers', 11 );

This is a bit awkward.

Change History (2)

#1 @ericlewis
10 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

Actually, filtering this is just as cumbersome because of how pointers are structured in the array. Closing this as whatever.

#2 @johnbillion
10 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.