apply_filters( 'sfwd_cpt_register_tax', array $taxonomies )
Filters list of taxonomies to be registered.
Description #
Add_filters are currently added during the add_post_type() method in swfd_cpt.php
Parameters #
- $taxonomies
-
(array) An array of taxonomy lists to be registered.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for sfwd_cpt_register_tax filter.
*/
add_filter(
'sfwd_cpt_register_tax',
function( $taxonomies ) {
// May add any custom logic using $taxonomies.
// Always return $taxonomies.
return $taxonomies;
}
);
Changelog #
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |