has_meta( int $postid )
Get meta data for the given post ID.
Description Description
Parameters Parameters
- $postid
-
(int) (Required)
Return Return
(mixed)
Source Source
File: wp-admin/includes/post.php
975 976 977 978 979 980 981 982 983 984 985 986 987 | function has_meta( $postid ) { global $wpdb ; return $wpdb ->get_results( $wpdb ->prepare( "SELECT meta_key, meta_value, meta_id, post_id FROM $wpdb ->postmeta WHERE post_id = %d ORDER BY meta_key,meta_id", $postid ), ARRAY_A ); } |
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
1.2.0 | Introduced. |