Automattic\WooCommerce\Blocks\BlockTypes
ClassicTemplate::filter_products_by_stock()
Метод класса: ClassicTemplate{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$ClassicTemplate = new ClassicTemplate(); $ClassicTemplate->// If there is a tag, and it has a class already, add the class attribute.;
Код ClassicTemplate::filter_products_by_stock() ClassicTemplate::filter products by stock WC 8.7.0
// If there is a tag, and it has a class already, add the class attribute. $pattern_get_class = '/(?<=class=\"|\')[^"|\']+(?=\"|\')/'; return preg_replace( $pattern_get_class, '$0 ' . $align_class_and_style['class'], $content, 1 ); } /** * Get the frontend style handle for this block type. * * @return null */ protected function get_block_type_style() { return null; } }