WordPress at a glance
function is not described

get_meta_keys() WP 1.2.0

Get a list of previously defined keys.

  • Global. wpdb. $wpdb WordPress database abstraction object.

No Hooks.

Return

Mixed.

Usage

get_meta_keys();

Code of get meta keys: wp-admin/includes/post.php VER 5.0.3

<?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;
}