sfw_get_post_meta

Description

Same as get_post_meta, but accepts WP_Post as first parameter

Since: 1.0.0

For further information see: get_post_meta

Code

<?php function sfw_get_post_meta( $post_id, $key = '', $single = false ){ 
	 … 
 } ?>

Parameter

$post_id
(int|WP_Post) post id or WP_Post
$key
(string)

Default: ''

$single
(boolean)

Default: false

Return

(mixed) the posts meta

File

core/includes/functions-wp-helpers.php