apply_filters( 'sfwd_cpt_template', string $template )
Filters custom post type shortcode content.
Description #
Parameters #
- $template
-
(string) Shortcode template content.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for sfwd_cpt_template filter.
*/
add_filter(
'sfwd_cpt_template',
function( $template ) {
// May add any custom logic using $template.
// Always return $template.
return $template;
}
);