WC_Template_Loader::unsupported_theme_shop_page_init
Hook in methods to enhance the unsupported theme experience on the Shop page.
Method of the class: WC_Template_Loader{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = WC_Template_Loader::unsupported_theme_shop_page_init();
Changelog
| Since 3.3.0 | Introduced. |
WC_Template_Loader::unsupported_theme_shop_page_init() WC Template Loader::unsupported theme shop page init code WC 10.5.0
private static function unsupported_theme_shop_page_init() {
add_filter( 'the_content', array( __CLASS__, 'unsupported_theme_shop_content_filter' ), 10 );
add_filter( 'the_title', array( __CLASS__, 'unsupported_theme_title_filter' ), 10, 2 );
add_filter( 'comments_number', array( __CLASS__, 'unsupported_theme_comments_number_filter' ) );
}