admin_print_scripts-post-new.php
The WordPress Core admin print scripts post new php hook.
Description
Parameters (1)
- 0. $wp_page_reload_on_back_button_js (string) =>
'wp_page_reload_on_back_button_js'
- The
wp
page reload on back button js.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'admin_print_scripts-post-new.php', $wp_page_reload_on_back_button_js );
- The following example is for adding a hook callback.
- // define the admin_print_scripts-post-new.php callback
- function action_admin_print_scripts_post_new_php( $wp_page_reload_on_back_button_js ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'admin_print_scripts-post-new.php', 'action_admin_print_scripts_post_new_php', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'admin_print_scripts-post-new.php', 'action_admin_print_scripts_post_new_php', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /wp-admin/includes/admin-filters.php
- add_action( 'admin_print_scripts-post-new.php', 'wp_page_reload_on_back_button_js' );