woocommerce_style_smallscreen_breakpoint
Использование
add_filter( 'woocommerce_style_smallscreen_breakpoint', 'wp_kama_woocommerce_style_smallscreen_breakpoint_filter' ); /** * Function for `woocommerce_style_smallscreen_breakpoint` filter-hook. * * @param $string * * @return */ function wp_kama_woocommerce_style_smallscreen_breakpoint_filter( $string ){ // filter... return $string; }
- $string
- -
Где вызывается хук
woocommerce_style_smallscreen_breakpoint
woocommerce/includes/class-wc-frontend-scripts.php 81
'media' => 'only screen and (max-width: ' . apply_filters( 'woocommerce_style_smallscreen_breakpoint', '768px' ) . ')',