has_meta

Definition:
function has_meta( $postid ) {}

Some postmeta stuff.

Parameters

  • unknown_type $postid

Source code

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 );



}

1933

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: