sfwd_cpt_register_tax

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 #

File: includes/class-ld-lms.php


Examples #

 <?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 #

Changelog
Version Description
2.1.0 Introduced.