wcps_filter_title
The Woocommerce Products Slider wcps filter title hook.
Description
apply_filters( 'wcps_filter_title', $get_the_title );
Parameters (1)
- 0. $get_the_title
- The get the title.
Usage
- To run the hook, copy the example below.
- $get_the_title = apply_filters( 'wcps_filter_title', $get_the_title );
- if ( !empty( $get_the_title ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the wcps_filter_title callback
- function filter_wcps_filter_title( $get_the_title ) {
- // make filter magic happen here...
- return $get_the_title;
- };
- // add the filter
- add_filter( 'wcps_filter_title', 'filter_wcps_filter_title', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'wcps_filter_title', 'filter_wcps_filter_title', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /templates/wcps-title.php
- $title_text = apply_filters( 'wcps_filter_title', get_the_title(get_the_ID()) );