get_meta_keys

Advertisement

Summery Summery

Get a list of previously defined keys.

Syntax Syntax

get_meta_keys()

Return Return

(mixed)

Source Source

File: wp-admin/includes/post.php

function get_meta_keys() {
	global $wpdb;

	$keys = $wpdb->get_col(
		"
			SELECT meta_key
			FROM $wpdb->postmeta
			GROUP BY meta_key
			ORDER BY meta_key"
	);

	return $keys;
}

Advertisement

Changelog Changelog

Changelog
Version Description
1.2.0 Introduced.

Advertisement

Leave a Reply