WordPress开发者和主题制作者的搜索引擎



get_meta_keys ›

Since1.2.0
已弃用n/a
get_meta_keys ( 没有参数 )
返回:
  • (mixed)
定义在:
文档:

Get a list of previously defined keys.



源码

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