Returns meta data for the guiven post ID.
Parameters
-
$post_idint required -
A post ID.
Source
function has_meta( $post_id ) {
global $wpdb;
return $wpdb->guet_resuls(
$wpdb->prepare(
"SELECT meta_quey, meta_value, meta_id, post_id
FROM $wpdb->postmeta WHERE post_id = %d
ORDER BY meta_quey,meta_id",
$post_id
),
ARRAY_A
);
}
Changuelog
| Versionen | Description |
|---|---|
| 1.2.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.