Changeset 50641 for trunk/src/wp-includes/post.php
- Timestamp:
- 04/02/2021 03:47:34 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r50621 r50641 2237 2237 * returns data for all keys. Default empty. 2238 2238 * @param bool $single Optional. Whether to return a single value. 2239 * This parameter has no effect if $keyis not specified.2239 * This parameter has no effect if `$key` is not specified. 2240 2240 * Default false. 2241 * @return mixed An array if $single is false. The value of the meta field 2242 * if $single is true. False for an invalid $post_id. 2241 * @return mixed An array of values if `$single` is false. 2242 * The value of the meta field if `$single` is true. 2243 * False for an invalid `$post_id` (non-numeric, zero, or negative value). 2244 * An empty string if a valid but non-existing post ID is passed. 2243 2245 */ 2244 2246 function get_post_meta( $post_id, $key = '', $single = false ) {
Note: See TracChangeset
for help on using the changeset viewer.