wpseek.com
A WordPress-centric search engine for devs and theme authors
get_registered_meta_keys › WordPress Function
Since4.6.0
Deprecatedn/a
› get_registered_meta_keys ( $object_type, $object_subtype = '' )
Parameters: (2) |
|
Returns: |
|
Defined at: |
|
Codex: | |
Change Log: |
|
Retrieves a list of registered metadata args for an object type, keyed by their meta keys.
Source
function get_registered_meta_keys( $object_type, $object_subtype = '' ) { global $wp_meta_keys; if ( ! is_array( $wp_meta_keys ) || ! isset( $wp_meta_keys[ $object_type ] ) || ! isset( $wp_meta_keys[ $object_type ][ $object_subtype ] ) ) { return array(); } return $wp_meta_keys[ $object_type ][ $object_subtype ]; }