wordpress-develop
wordpress-develop copied to clipboard
Added new do_action `wp_admin_after_add_new_button `
I recently encountered an issue where adding a button such as "Import" was impossible without JS manipulation (which is hackish). Adding this do_action will allow me and other users to dynamically add a button on the screen for custom post types.
Trac ticket: https://core.trac.wordpress.org/ticket/61225#ticket
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.