option_tag_base
The WordPress Core option tag base hook.
Description
Parameters (1)
- 0. $wp_filter_taxonomy_base (string) =>
'_wp_filter_taxonomy_base'
- The
wp
filter taxonomy base.
Usage
- To run the hook, copy the example below.
- $wp_filter_taxonomy_base = apply_filters( 'option_tag_base', $wp_filter_taxonomy_base );
- if ( !empty( $wp_filter_taxonomy_base ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the option_tag_base callback
- function filter_option_tag_base( $wp_filter_taxonomy_base ) {
- // make filter magic happen here...
- return $wp_filter_taxonomy_base;
- };
- // add the filter
- add_filter( 'option_tag_base', 'filter_option_tag_base', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'option_tag_base', 'filter_option_tag_base', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /wp-includes/default-filters.php
- add_filter( 'option_tag_base', '_wp_filter_taxonomy_base' );