wppaste
WordPress

do_action( 'twentytwenty_start_of_post_meta_list', int $post_id, array $post_meta, string $location )

Since
Twenty Twenty 1.0, Twenty Twenty 1.1 Added the <code>$post_meta</code> and <code>$location</code> parameters.
Fires before post meta HTML display.

Description

Allow output of additional post meta info to be added by child themes and plugins.

Compatibility

WordPress
since Twenty Twenty 1.1 Added the <code>$post_meta</code> and <code>$location</code> parameters.
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$post_idint
Post ID.
$post_metaarray
An array of post meta information.
$locationstring
The location where the meta is shown.
Accepts 'single-top' or 'single-bottom'.

Where this hook fires · 1

  • wp-content/themes/twentytwenty/inc/template-tags.php:365twentytwenty_get_post_meta()

Source code

				 *				 * @param int    $post_id   Post ID.				 * @param array  $post_meta An array of post meta information.				 * @param string $location  The location where the meta is shown.				 *                          Accepts 'single-top' or 'single-bottom'.				 */				do_action( 'twentytwenty_start_of_post_meta_list', $post_id, $post_meta, $location ); 				// Author.				if ( post_type_supports( get_post_type( $post_id ), 'author' ) && in_array( 'author', $post_meta, true ) ) { 					$has_meta = true;					?>

Changelog

Introduced in Twenty Twenty 1.1 Added the <code>$post_meta</code> and <code>$location</code> parameters.. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

Twenty Twenty 1.1 Added the <code>$post_meta</code> and <code>$location</code> parameters.
Twenty Twenty 1.1 Added the $post_meta and $location parameters.from the docblock
Twenty Twenty 1.0
Twenty Twenty 1.0from the docblock

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.