#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)
Note: See
TracTickets for help on using
tickets.
Actually, filtering this is just as cumbersome because of how pointers are structured in the array. Closing this as whatever.