get_meta_keys() – Get a list of previously defined keys.

You appear to be a bot. Output may be restricted

Description

Returns a list of previously defined keys.

Usage

$string[] = get_meta_keys();

Parameters

Returns

string[] Array of meta key names.

Source

File name: wordpress/wp-admin/includes/post.php
Lines:

1 to 13 of 13
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;
}
 

 View on GitHub View on Trac