Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: twentytwenty_start_of_post_meta_list

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
332                      *
333                      * @since Twenty Twenty 1.0
334                      * @since Twenty Twenty 1.1 Added the `$post_meta` and `$location` parameters.
335                      *
336                      * @param int    $post_id   Post ID.
337                      * @param array  $post_meta An array of post meta information.
338                      * @param string $location  The location where the meta is shown.
339                      *                          Accepts 'single-top' or 'single-bottom'.
340                      */
341                     do_action( 'twentytwenty_start_of_post_meta_list', $post_id, $post_meta, $location );
342
343                     // Author.
344                     if ( post_type_supports( get_post_type( $post_id ), 'author' ) && in_array( 'author', $post_meta, true ) ) {
345
346                          $has_meta = true;
347                          ?>
348                          <li class="post-author meta-wrapper">
349                               <span class="meta-icon">
350                                    <span class="screen-reader-text"><?php _e( 'Post author', 'twentytwenty' ); ?></span>