Skip to content

Available filters and actions

John Blackbourn edited this page Jan 20, 2022 · 8 revisions

ext-cpts/{$post_type}/args

apply_filters( "ext-cpts/{$post_type}/args", array $args )

Filter the arguments for this post type.

Parameters

$args
(array) The post type arguments.

Since

2.4.0


ext-cpts/{$post_type}/names

apply_filters( "ext-cpts/{$post_type}/names", array $names )

Filter the plural, singular, and slug names for this post type.

Parameters

$names
(array) The plural, singular, and slug names (if any were specified).

Since

2.4.0


ext-cpts/args

apply_filters( 'ext-cpts/args', array $args, string $post_type )

Filter the arguments for a post type.

Parameters

$args
(array) The post type arguments.
$post_type
(string) The post type name.

Since

4.4.1


ext-cpts/names

apply_filters( 'ext-cpts/names', array $names, string $post_type )

Filter the plural, singular, and slug names for a post type.

Parameters

$names
(array) The plural, singular, and slug names (if any were specified).
$post_type
(string) The post type name.

Since

4.4.1


ext-cpts/{$post_type}/instance

do_action( "ext-cpts/{$post_type}/instance", \ExtCPTs\PostType $instance )

Fired when the extended post type instance is set up.

Parameters

$instance
(\ExtCPTs\PostType) The extended post type instance.

Since

4.0.0


ext-cpts/{$post_type}/admin-instance

do_action( "ext-cpts/{$post_type}/admin-instance", \ExtCPTs\PostTypeAdmin $instance )

Fired when the extended post type admin instance is set up.

Parameters

$instance
(\ExtCPTs\PostTypeAdmin) The extended post type admin instance.

Since

5.0.0


ext-taxos/{$taxonomy}/args

apply_filters( "ext-taxos/{$taxonomy}/args", array $args )

Filter the arguments for this taxonomy.

Parameters

$args
(array) The taxonomy arguments.

Since

2.0.0


ext-taxos/{$taxonomy}/names

apply_filters( "ext-taxos/{$taxonomy}/names", array $names )

Filter the plural, singular, and slug for this taxonomy.

Parameters

$names
(array) The plural, singular, and slug names (if any were specified).

Since

2.0.0


ext-taxos/args

apply_filters( 'ext-taxos/args', array $args, string $post_type )

Filter the arguments for a taxonomy.

Parameters

$args
(array) The taxonomy arguments.
$taxonomy
(string) The taxonomy name.

Since

4.4.1


ext-taxos/names

apply_filters( 'ext-taxos/names', array $names, string $post_type )

Filter the plural, singular, and slug for a taxonomy.

Parameters

$names
(array) The plural, singular, and slug names (if any were specified).
$taxonomy
(string) The taxonomy name.

Since

4.4.1


ext-taxos/{$taxonomy}/instance

do_action( "ext-taxos/{$taxonomy}/instance", \ExtCPTs\Taxonomy $instance )

Fired when the extended taxonomy instance is set up.

Parameters

$instance
(\ExtCPTs\Taxonomy) The extended taxonomy instance.

Since

4.0.0


ext-taxos/{$taxonomy}/admin-instance

do_action( "ext-taxos/{$taxonomy}/admin-instance", \ExtCPTs\TaxonomyAdmin $instance )

Fired when the extended taxonomy admin instance is set up.

Parameters

$instance
(\ExtCPTs\TaxonomyAdmin) The extended taxonomy admin instance.

Since

5.0.0