woocommerce_background_image_regeneration
phpcs:disable WooCommerce.Commenting.CommentHooks.MissingHookComment
Usage
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
- -
Where the hook is called
woocommerce_background_image_regeneration
woocommerce_background_image_regeneration
woocommerce_background_image_regeneration
woocommerce/includes/customizer/class-wc-shop-customizer.php 583
} 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/includes/customizer/class-wc-shop-customizer.php 586
} elseif ( apply_filters( 'woocommerce_background_image_regeneration', true ) && is_multisite() ) {
woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-tools-v2-controller.php 232
if ( ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'photon' ) ) || ! apply_filters( 'woocommerce_background_image_regeneration', true ) ) {