diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index 7e31623ffc..a3571afb58 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -77,7 +77,7 @@ if ( is_user_logged_in() ) { /** * Fires authenticated AJAX actions for logged-in users. * - * The dynamic portion of the hook name, $_REQUEST['action'], + * The dynamic portion of the hook name, `$_REQUEST['action']`, * refers to the name of the AJAX action callback being fired. * * @since 2.1.0 @@ -87,7 +87,7 @@ if ( is_user_logged_in() ) { /** * Fires non-authenticated AJAX actions for logged-out users. * - * The dynamic portion of the hook name, $_REQUEST['action'], + * The dynamic portion of the hook name, `$_REQUEST['action']`, * refers to the name of the AJAX action callback being fired. * * @since 2.8.0 diff --git a/wp-admin/admin-footer.php b/wp-admin/admin-footer.php index 0619c86292..f7ef110392 100644 --- a/wp-admin/admin-footer.php +++ b/wp-admin/admin-footer.php @@ -76,7 +76,7 @@ do_action( 'admin_print_footer_scripts' ); /** * Print scripts or data after the default footer scripts. * - * The dynamic portion of the hook name, $GLOBALS['hook_suffix'], + * The dynamic portion of the hook name, `$GLOBALS['hook_suffix']`, * refers to the global hook suffix of the current page. * * @since 2.8.0 diff --git a/wp-admin/admin-post.php b/wp-admin/admin-post.php index f05cdf4e2d..cb92699efd 100644 --- a/wp-admin/admin-post.php +++ b/wp-admin/admin-post.php @@ -42,7 +42,7 @@ if ( ! wp_validate_auth_cookie() ) { /** * Fires on a non-authenticated admin post request for the given action. * - * The dynamic portion of the hook name, $action, refers to the given + * The dynamic portion of the hook name, `$action`, refers to the given * request action. * * @since 2.6.0 @@ -61,7 +61,7 @@ if ( ! wp_validate_auth_cookie() ) { /** * Fires on an authenticated admin post request for the given action. * - * The dynamic portion of the hook name, $action, refers to the given + * The dynamic portion of the hook name, `$action`, refers to the given * request action. * * @since 2.6.0 diff --git a/wp-admin/admin.php b/wp-admin/admin.php index 65e17af9ce..793dc511f6 100644 --- a/wp-admin/admin.php +++ b/wp-admin/admin.php @@ -185,14 +185,14 @@ if ( isset($plugin_page) ) { * The load-* hook fires in a number of contexts. This hook is for plugin screens * where a callback is provided when the screen is registered. * - * The dynamic portion of the hook name, $page_hook, refers to a mixture of plugin + * The dynamic portion of the hook name, `$page_hook`, refers to a mixture of plugin * page information including: * 1. The page type. If the plugin page is registered as a submenu page, such as for * Settings, the page type would be 'settings'. Otherwise the type is 'toplevel'. * 2. A separator of '_page_'. * 3. The plugin basename minus the file extension. * - * Together, the three parts form the $page_hook. Citing the example above, + * Together, the three parts form the `$page_hook`. Citing the example above, * the hook name used would be 'load-settings_page_pluginbasename'. * * @see get_plugin_page_hook() @@ -223,7 +223,7 @@ if ( isset($plugin_page) ) { * The load-* hook fires in a number of contexts. This hook is for plugin screens * where the file to load is directly included, rather than the use of a function. * - * The dynamic portion of the hook name, $plugin_page, refers to the plugin basename. + * The dynamic portion of the hook name, `$plugin_page`, refers to the plugin basename. * * @see plugin_basename() * @@ -263,7 +263,7 @@ if ( isset($plugin_page) ) { /** * Fires before an importer screen is loaded. * - * The dynamic portion of the hook name, $importer, refers to the importer slug. + * The dynamic portion of the hook name, `$importer`, refers to the importer slug. * * @since 3.5.0 */ @@ -308,7 +308,7 @@ if ( isset($plugin_page) ) { * * The load-* hook fires in a number of contexts. This hook is for core screens. * - * The dynamic portion of the hook name, $pagenow, is a global variable + * The dynamic portion of the hook name, `$pagenow`, is a global variable * referring to the filename of the current page, such as 'admin.php', * 'post-new.php' etc. A complete hook for the latter would be * 'load-post-new.php'. @@ -338,8 +338,8 @@ if ( ! empty( $_REQUEST['action'] ) ) { /** * Fires when an 'action' request variable is sent. * - * The dynamic portion of the hook name, $_REQUEST['action'], - * refers to the action derived from the GET or POST request. + * The dynamic portion of the hook name, `$_REQUEST['action']`, + * refers to the action derived from the `GET` or `POST` request. * * @since 2.6.0 */ diff --git a/wp-admin/async-upload.php b/wp-admin/async-upload.php index 829a791af0..08d710d27b 100644 --- a/wp-admin/async-upload.php +++ b/wp-admin/async-upload.php @@ -104,7 +104,7 @@ if ( $_REQUEST['short'] ) { /** * Filter the returned ID of an uploaded attachment. * - * The dynamic portion of the hook name, $type, refers to the attachment type, + * The dynamic portion of the hook name, `$type`, refers to the attachment type, * such as 'image', 'audio', 'video', 'file', etc. * * @since 2.5.0 diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 52edd1e688..631cb90cf0 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -244,7 +244,7 @@ do_action( 'add_meta_boxes', $post_type, $post ); /** * Fires after all built-in meta boxes have been added, contextually for the given post type. * - * The dynamic portion of the hook, $post_type, refers to the post type of the post. + * The dynamic portion of the hook, `$post_type`, refers to the post type of the post. * * @since 3.0.0 * diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php index 71c2dd97d3..082086f62e 100644 --- a/wp-admin/edit-tag-form.php +++ b/wp-admin/edit-tag-form.php @@ -51,7 +51,7 @@ if ( 'category' == $taxonomy ) { /** * Fires before the Edit Term form for all taxonomies. * - * The dynamic portion of the hook name, $taxonomy, refers to + * The dynamic portion of the hook name, `$taxonomy`, refers to * the taxonomy slug. * * @since 3.0.0 @@ -64,17 +64,18 @@ do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?>

labels->edit_item; ?>

+
-> +do_action( "{$taxonomy}_term_edit_form_tag" ); +?>> @@ -153,7 +154,7 @@ do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?> /** * Fires after the Edit Term form fields are displayed. * - * The dynamic portion of the hook name, $taxonomy, refers to + * The dynamic portion of the hook name, `$taxonomy`, refers to * the taxonomy slug. * * @since 3.0.0 @@ -186,7 +187,7 @@ if ( 'category' == $taxonomy ) { /** * Fires at the end of the Edit Term form for all taxonomies. * - * The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug. + * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug. * * @since 3.0.0 * diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index aa727b59e6..501b58512e 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -351,7 +351,7 @@ endif; ?> /** * Fires after the taxonomy list table. * - * The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug. + * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug. * * @since 3.0.0 * @@ -420,7 +420,7 @@ if ( current_user_can($tax->cap->edit_terms) ) { /** * Fires before the Add Term form for all taxonomies. * - * The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug. + * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug. * * @since 3.0.0 * @@ -431,16 +431,17 @@ if ( current_user_can($tax->cap->edit_terms) ) {

labels->add_new_item; ?>

+ -> +do_action( "{$taxonomy}_term_new_form_tag" ); +?>> @@ -521,7 +522,7 @@ if ( ! is_taxonomy_hierarchical( $taxonomy ) ) { /** * Fires after the Add Term form fields for hierarchical taxonomies. * - * The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug. + * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug. * * @since 3.0.0 * @@ -566,7 +567,7 @@ if ( 'category' == $taxonomy ) { /** * Fires at the end of the Add Term form for all taxonomies. * - * The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug. + * The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug. * * @since 3.0.0 * diff --git a/wp-admin/media-upload.php b/wp-admin/media-upload.php index 114328f134..5c769e01e1 100644 --- a/wp-admin/media-upload.php +++ b/wp-admin/media-upload.php @@ -74,13 +74,13 @@ if ( isset($action) && $action == 'edit' && !$ID ) * Fires inside specific upload-type views in the legacy (pre-3.5.0) * media popup based on the current tab. * - * The dynamic portion of the hook name, $type, refers to the specific + * The dynamic portion of the hook name, `$type`, refers to the specific * media upload type. Possible values include 'image', 'audio', 'video', * 'file', etc. * - * The hook only fires if the current $tab is 'type' (From Computer), + * The hook only fires if the current `$tab` is 'type' (From Computer), * 'type_url' (From URL), or, if the tab does not exist (i.e., has not - * been registered via the 'media_upload_tabs' filter. + * been registered via the {@see 'media_upload_tabs'} filter. * * @since 2.5.0 */ @@ -90,9 +90,9 @@ if ( isset($action) && $action == 'edit' && !$ID ) * Fires inside limited and specific upload-tab views in the legacy * (pre-3.5.0) media popup. * - * The dynamic portion of the hook name, $tab, refers to the specific + * The dynamic portion of the hook name, `$tab`, refers to the specific * media upload tab. Possible values include 'library' (Media Library), - * or any custom tab registered via the 'media_upload_tabs' filter. + * or any custom tab registered via the {@see 'media_upload_tabs'} filter. * * @since 2.5.0 */ diff --git a/wp-admin/plugin-install.php b/wp-admin/plugin-install.php index 4140d36bf2..e2431eb9b5 100644 --- a/wp-admin/plugin-install.php +++ b/wp-admin/plugin-install.php @@ -57,7 +57,7 @@ $body_id = $tab; /** * Fires before each tab on the Install Plugins screen is loaded. * - * The dynamic portion of the action hook, $tab, allows for targeting + * The dynamic portion of the action hook, `$tab`, allows for targeting * individual tabs, for instance 'install_plugins_pre_plugin-information'. * * @since 2.7.0 @@ -117,15 +117,14 @@ if ( $tab !== 'upload' ) { /** * Fires after the plugins list table in each tab of the Install Plugins screen. * - * The dynamic portion of the action hook, $tab, allows for targeting + * The dynamic portion of the action hook, `$tab`, allows for targeting * individual tabs, for instance 'install_plugins_plugin-information'. * * @since 2.7.0 * * @param int $paged The current page number of the plugins list table. */ -?> - +do_action( "install_plugins_$tab", $paged ); ?>
diff --git a/wp-admin/update-core.php b/wp-admin/update-core.php index ec59a92329..7c939e71f0 100644 --- a/wp-admin/update-core.php +++ b/wp-admin/update-core.php @@ -649,7 +649,7 @@ if ( 'upgrade-core' == $action ) { /** * Fires for each custom update action on the WordPress Updates screen. * - * The dynamic portion of the hook name, $action, refers to the + * The dynamic portion of the hook name, `$action`, refers to the * passed update action. The hook fires in lieu of all available * default update actions. * diff --git a/wp-admin/update.php b/wp-admin/update.php index c279444320..6ded7a7d7a 100644 --- a/wp-admin/update.php +++ b/wp-admin/update.php @@ -261,7 +261,7 @@ if ( isset($_GET['action']) ) { /** * Fires when a custom plugin or theme update request is received. * - * The dynamic portion of the hook name, $action, refers to the action + * The dynamic portion of the hook name, `$action`, refers to the action * provided in the request for wp-admin/update.php. Can be used to * provide custom update functionality for themes and plugins. * diff --git a/wp-admin/user-edit.php b/wp-admin/user-edit.php index ca18b546e0..fb1272eff1 100644 --- a/wp-admin/user-edit.php +++ b/wp-admin/user-edit.php @@ -436,19 +436,21 @@ if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c foreach ( wp_get_user_contact_methods( $profileuser ) as $name => $desc ) { ?> - - +