Uses
Uses | Description |
---|---|
wp-includes/wp-db.php: wpdb::get_col() | Retrieves one column from the database. |
Get a list of previously defined keys.
(mixed)
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; }
Version | Description |
---|---|
1.2.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_meta_keys