s2_taxonomies
The Subscribe2 s2 taxonomies hook.
Description
apply_filters( 's2_taxonomies', $array );
Parameters (1)
- 0. $array
- The array.
Usage
- To run the hook, copy the example below.
- $array = apply_filters( 's2_taxonomies', $array );
- if ( !empty( $array ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the s2_taxonomies callback
- function filter_s2_taxonomies( $array ) {
- // make filter magic happen here...
- return $array;
- };
- // add the filter
- add_filter( 's2_taxonomies', 'filter_s2_taxonomies', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 's2_taxonomies', 'filter_s2_taxonomies', 10, 1 );
Defined (4)
The filter is defined in the following location(s).
- /classes/class-s2-core.php
- $s2_taxonomies = apply_filters('s2_taxonomies', array('category'));
- $s2_taxonomies = apply_filters('s2_taxonomies', array('category'));
- $s2_taxonomies = apply_filters('s2_taxonomies', array('category'));
- $s2_taxonomies = apply_filters('s2_taxonomies', array('category'));