has_meta( int $postid )

Get meta data for the given post ID.

Parameters Parameters


(int) (Required)

Top ↑

Return Return


Top ↑

Source Source

File: wp-admin/includes/post.php

function has_meta( $postid ) {
	global $wpdb;

	return $wpdb->get_results(
			"SELECT meta_key, meta_value, meta_id, post_id
			FROM $wpdb->postmeta WHERE post_id = %d
			ORDER BY meta_key,meta_id",

Top ↑

Changelog Changelog

Version Description
1.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.