Uses
Uses | Description |
---|---|
wp-includes/general-template.php: wp_meta | Fires before displaying echoed content in the sidebar. |
wp-includes/plugin.php: do_action() | Execute functions hooked on a specific action hook. |
Theme container function for the ‘wp_meta’ action.
The ‘wp_meta’ action can have several purposes, depending on how you use it, but one purpose might have been to allow for theme switching.
wp meta()
is called immediately after wp_loginout()
by sidebar.php
and the Meta widget, allowing functions to add new list items to the widget.get_sidebar( $name );
function has the do_action( 'get_sidebar', $name );
on top before it loads the sidebar file, this hook should be used to load stuff before the sidebar and wp_meta();
should be called at the end of the sidebar template to allow adding callbacks after the sidebar.File: wp-includes/general-template.php
function wp_meta() { /** * Fires before displaying echoed content in the sidebar. * * @since 1.5.0 */ do_action( 'wp_meta' ); }
Version | Description |
---|---|
1.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_meta