apply_filters( 'um_cpt_list', $cpt_list ) → {array}
Filters registered CPT in Ultimate Member.
Parameters:
Name | Type | Description |
---|---|---|
$cpt_list |
array | CPT keys. |
- Since:
- 2.0
- Source:
Returns:
CPT keys.
- Type
- array
Example
function um_custom_cpt_list( $cpt_list ) {
$cpt_list[] = '{my_cpt}';
return $cpt_list;
}
add_filter( 'um_cpt_list', 'um_custom_cpt_list' );