wp_meta()
Theme container function for the ‘wp_meta’ action.
Description Description
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.
Source Source
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' );
}
Expand full source code Collapse full source code View on Trac
Changelog Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Basic Example
Add a favourite link to the Meta widget:
function wpdocs_my_meta_link() { echo '<li><a href="http://www.example.com">' . __( 'My Favourite Link', 'textdomain' ) . '</a></li>'; } add_action( 'wp_meta', 'my_meta_link' );