woocommerce_background_image_regeneration хук-фильтрWC 1.0

Jetpack does the image resizing heavy lifting so you don't have to.

Использование

add_filter( 'woocommerce_background_image_regeneration', 'wp_kama_woocommerce_background_image_regeneration_filter' );

/**
 * Function for `woocommerce_background_image_regeneration` filter-hook.
 * 
 * @param  $true 
 *
 * @return 
 */
function wp_kama_woocommerce_background_image_regeneration_filter( $true ){

	// filter...
	return $true;
}
$true
-

Где вызывается хук

WC_REST_System_Status_Tools_V2_Controller::get_tools()
woocommerce_background_image_regeneration
WC_Shop_Customizer::add_product_images_section()
woocommerce_background_image_regeneration
WC_Regenerate_Images::init()
woocommerce_background_image_regeneration
woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-tools-v2-controller.php 223
if ( ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'photon' ) ) || ! apply_filters( 'woocommerce_background_image_regeneration', true ) ) {
woocommerce/includes/customizer/class-wc-shop-customizer.php 528
} elseif ( apply_filters( 'woocommerce_background_image_regeneration', true ) && ! is_multisite() ) {
woocommerce/includes/customizer/class-wc-shop-customizer.php 530
} elseif ( apply_filters( 'woocommerce_background_image_regeneration', true ) && is_multisite() ) {
woocommerce/includes/class-wc-regenerate-images.php 46
if ( apply_filters( 'woocommerce_background_image_regeneration', true ) ) {

Где используется хук в WooCommerce

Использование не найдено.