Title: wp_meta
Published: April 25, 2014
Last modified: February 24, 2026

---

# do_action( ‘wp_meta’ )

## In this article

 * [Source](https://developer.wordpress.org/reference/hooks/wp_meta/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wp_meta/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wp_meta/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/hooks/wp_meta/?output_format=md#user-contributed-notes)

[ Back to top](https://developer.wordpress.org/reference/hooks/wp_meta/?output_format=md#wp--skip-link--target)

Fires before displaying echoed content in the sidebar.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/wp_meta/?output_format=md#source)󠁿

    ```php
    do_action( 'wp_meta' );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/general-template.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/general-template.php#L749)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/general-template.php#L749-L749)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wp_meta/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_meta()](https://developer.wordpress.org/reference/functions/wp_meta/)`wp-includes/general-template.php` |

Theme container function for the ‘wp_meta’ action.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/wp_meta/?output_format=md#changelog)󠁿

| Version | Description | 
| [1.5.0](https://developer.wordpress.org/reference/since/1.5.0/) | Introduced. |

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/hooks/wp_meta/?output_format=md#user-contributed-notes)󠁿

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/hooks/wp_meta/?output_format=md#comment-content-4503)
 2.   [Codex](https://profiles.wordpress.org/codex/)  [  5 years ago  ](https://developer.wordpress.org/reference/hooks/wp_meta/#comment-4503)
 3. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_meta%2F%23comment-4503)
    Vote results for this note: 1[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_meta%2F%23comment-4503)
 4. This hook is theme-dependent which means that it is up to the author of each WordPress
    theme to include it. It may not be available on all themes, so you should take 
    this into account when using it. However, it is included in the default Meta widget
    when that widget is in use.
 5. This hook is an action which means that it primarily acts as an event trigger, 
    instead of a content filter. This is a semantic difference, but it will help you
    to remember what this hook does if you use it like this:
 6.     ```php
        function your_function() {
        	echo '<li>This text is inserted into the sidebar.</li>';
        }
        add_action('wp_meta', 'your_function');
        ?>
        ```
    
 7.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_meta%2F%3Freplytocom%3D4503%23feedback-editor-4503)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_meta%2F)
before being able to contribute a note or feedback.