Filter: ep_post_pre_meta_keys_db_per_post_type

apply_filters( 'ep_post_pre_meta_keys_db_per_post_type', $meta_keys, $post_type ) → {null|array}

Short-circuits the process of getting distinct meta keys from the database per post type.

Returning a non-null value will effectively short-circuit the function.

Parameters:
Name Type Description
$meta_keys null

Distinct meta keys array

$post_type string

Post type slug

Since:
  • 4.4.0
Source:
Returns:

Distinct meta keys array or null to keep default behavior

Type
null | array