-
-
Notifications
You must be signed in to change notification settings - Fork 94
Available filters and actions
John Blackbourn edited this page Jan 20, 2022
·
8 revisions
apply_filters( "ext-cpts/{$post_type}/args", array $args )
Filter the arguments for this post type.
- $args
- (array) The post type arguments.
2.4.0
apply_filters( "ext-cpts/{$post_type}/names", array $names )
Filter the plural, singular, and slug names for this post type.
- $names
- (array) The plural, singular, and slug names (if any were specified).
2.4.0
apply_filters( 'ext-cpts/args', array $args, string $post_type )
Filter the arguments for a post type.
- $args
- (array) The post type arguments.
- $post_type
- (string) The post type name.
4.4.1
apply_filters( 'ext-cpts/names', array $names, string $post_type )
Filter the plural, singular, and slug names for a post type.
- $names
- (array) The plural, singular, and slug names (if any were specified).
- $post_type
- (string) The post type name.
4.4.1
do_action( "ext-cpts/{$post_type}/instance", \ExtCPTs\PostType $instance )
Fired when the extended post type instance is set up.
- $instance
- (\ExtCPTs\PostType) The extended post type instance.
4.0.0
do_action( "ext-cpts/{$post_type}/admin-instance", \ExtCPTs\PostTypeAdmin $instance )
Fired when the extended post type admin instance is set up.
- $instance
- (\ExtCPTs\PostTypeAdmin) The extended post type admin instance.
5.0.0
apply_filters( "ext-taxos/{$taxonomy}/args", array $args )
Filter the arguments for this taxonomy.
- $args
- (array) The taxonomy arguments.
2.0.0
apply_filters( "ext-taxos/{$taxonomy}/names", array $names )
Filter the plural, singular, and slug for this taxonomy.
- $names
- (array) The plural, singular, and slug names (if any were specified).
2.0.0
apply_filters( 'ext-taxos/args', array $args, string $post_type )
Filter the arguments for a taxonomy.
- $args
- (array) The taxonomy arguments.
- $taxonomy
- (string) The taxonomy name.
4.4.1
apply_filters( 'ext-taxos/names', array $names, string $post_type )
Filter the plural, singular, and slug for a taxonomy.
- $names
- (array) The plural, singular, and slug names (if any were specified).
- $taxonomy
- (string) The taxonomy name.
4.4.1
do_action( "ext-taxos/{$taxonomy}/instance", \ExtCPTs\Taxonomy $instance )
Fired when the extended taxonomy instance is set up.
- $instance
- (\ExtCPTs\Taxonomy) The extended taxonomy instance.
4.0.0
do_action( "ext-taxos/{$taxonomy}/admin-instance", \ExtCPTs\TaxonomyAdmin $instance )
Fired when the extended taxonomy admin instance is set up.
- $instance
- (\ExtCPTs\TaxonomyAdmin) The extended taxonomy admin instance.
5.0.0