wp_meta() WordPress Function

The wp_meta() function allows you to add meta data to your WordPress site. Meta data is information that is not displayed on the front-end of your site, but is used by WordPress to store information about your site.

wp_meta() #

Theme container function for the ‘wp_meta’ action.


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.


Top ↑

More Information

  • By default, 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.
  • As the 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.

Top ↑

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' );
}


Top ↑

Changelog

Changelog
VersionDescription
1.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More