WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#28501 closed enhancement (wontfix)

Add a filter for registered pointers

Reported by: 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
5 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
5 years ago

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