woocommerce_background_image_regeneration
woocommerce_background_image_regeneration
Appears in: woocommerce.3.4.2, woocommerce.3.4.4, woocommerce.3.4.5, woocommerce.3.4.6, woocommerce.3.4.7, woocommerce.3.5.0, woocommerce.3.5.1, woocommerce.3.5.2, woocommerce.3.5.3, woocommerce.3.5.4, woocommerce.3.5.5, woocommerce.3.5.6, woocommerce.3.5.7, woocommerce.3.5.8, woocommerce.3.6.1, woocommerce.3.6.2, woocommerce.3.6.3, woocommerce.3.6.4, woocommerce.3.6.5, woocommerce.3.7.0, woocommerce.3.7.1, woocommerce.3.8.0, woocommerce.3.8.1, woocommerce.3.9.0, woocommerce.3.9.1, woocommerce.3.9.2, woocommerce.3.9.3, woocommerce.4.0.0, woocommerce.4.0.1, woocommerce.4.1.0, woocommerce.4.1.1, woocommerce.4.2.0, woocommerce.4.2.1, woocommerce.4.3.0, woocommerce.4.3.1, woocommerce.4.3.2, woocommerce.4.3.3, woocommerce.4.4.0, woocommerce.4.4.1, woocommerce.4.5.1, woocommerce.4.5.2, woocommerce.4.6.0, woocommerce.4.6.1, woocommerce.4.6.2, woocommerce.4.7.0, woocommerce.4.7.1, woocommerce.4.8.0, woocommerce.4.9.0, woocommerce.4.9.1, woocommerce.4.9.2, woocommerce.5.0.0, woocommerce.5.1.0, woocommerce.5.2.0, woocommerce.5.2.1, woocommerce.5.2.2, woocommerce.5.3.0, woocommerce.5.4.0, woocommerce.5.4.1, woocommerce.5.5.0, woocommerce.5.5.1, woocommerce.5.5.2, woocommerce.5.6.0, woocommerce.5.6.1, woocommerce.5.7.0, woocommerce.5.7.1, woocommerce.5.8.0, woocommerce.6.3.1, woocommerce.6.4.1, woocommerce.6.5.1, woocommerce.6.6.1, woocommerce.6.7.0, woocommerce.6.8.0, woocommerce.6.8.1, woocommerce.6.8.2, woocommerce.6.9.0, woocommerce.6.9.4, woocommerce.7.0.0, woocommerce.7.1.0, woocommerce.7.1.1, woocommerce.7.2.2, woocommerce.7.3.0, woocommerce.7.4.0, woocommerce.7.4.1, woocommerce.7.5.1, woocommerce.7.6.0, woocommerce.7.6.1, woocommerce.7.7.0, woocommerce.7.7.1, woocommerce.7.8.1, woocommerce.7.9.0, woocommerce.8.0.3, woocommerce.8.1.1, woocommerce.8.2.1, woocommerce.8.2.2, woocommerce.8.3.1, woocommerce.8.4.0, woocommerce.8.5.1, woocommerce.8.5.2, woocommerce.8.6.0, woocommerce.8.6.1, woocommerce.8.7.0, woocommerce.8.8.3, woocommerce.8.9.2, woocommerce.8.9.3, woocommerce.9.0.2, woocommerce.9.1.2, woocommerce.9.1.4, woocommerce.9.2.2, woocommerce.9.2.3, woocommerce.9.3.1, woocommerce.9.3.3, woocommerce.9.4.2, woocommerce.9.4.3, woocommerce.9.5.1, woocommerce.9.5.2, woocommerce.9.7.0, woocommerce.9.7.1, woocommerce.9.8.1
Hook Type: filter
Displaying hooks found in version: woocommerce.9.8.1apply_filters('woocommerce_background_image_regeneration') is found 4 times:
- /includes/class-wc-regenerate-images.php line 464243444546474849505152
if
( method_exists(
'Jetpack'
,
'is_module_active'
) && Jetpack::is_module_active(
'photon'
) ) {
return
;
}
if
( apply_filters(
'woocommerce_background_image_regeneration'
, true ) ) {
include_once
WC_ABSPATH .
'includes/class-wc-regenerate-images-request.php'
;
self::
$background_process
=
new
WC_Regenerate_Images_Request();
add_action(
'admin_init'
,
array
(
__CLASS__
,
'regenerating_notice'
) );
add_action(
'woocommerce_hide_regenerating_thumbnails_notice'
,
array
(
__CLASS__
,
'dismiss_regenerating_notice'
) );
- /includes/customizer/class-wc-shop-customizer.php line 583579580581582583584585586587588589
private
function
add_product_images_section(
$wp_customize
) {
if
(
class_exists
(
'Jetpack'
) && Jetpack::is_module_active(
'photon'
) ) {
$regen_description
=
''
;
// Nothing to report; Jetpack will handle magically.
/* phpcs:disable WooCommerce.Commenting.CommentHooks.MissingHookComment */
}
elseif
( apply_filters(
'woocommerce_background_image_regeneration'
, true ) && ! is_multisite() ) {
$regen_description
= __(
'After publishing your changes, new image sizes will be generated automatically.'
,
'woocommerce'
);
/* phpcs:disable WooCommerce.Commenting.CommentHooks.MissingHookComment */
}
elseif
( apply_filters(
'woocommerce_background_image_regeneration'
, true ) && is_multisite() ) {
/* translators: 1: tools URL 2: regen thumbs url */
$regen_description
= sprintf( __(
'After publishing your changes, new image sizes may not be shown until you regenerate thumbnails. You can do this from the <a href="%1$s" target="_blank">tools section in WooCommerce</a> or by using a plugin such as <a href="%2$s" target="_blank">Regenerate Thumbnails</a>.'
,
'woocommerce'
), admin_url(
'admin.php?page=wc-status&tab=tools'
),
'https://en-gb.wordpress.org/plugins/regenerate-thumbnails/'
);
}
else
{
- /includes/customizer/class-wc-shop-customizer.php line 586582583584585586587588589590591592
/* phpcs:disable WooCommerce.Commenting.CommentHooks.MissingHookComment */
}
elseif
( apply_filters(
'woocommerce_background_image_regeneration'
, true ) && ! is_multisite() ) {
$regen_description
= __(
'After publishing your changes, new image sizes will be generated automatically.'
,
'woocommerce'
);
/* phpcs:disable WooCommerce.Commenting.CommentHooks.MissingHookComment */
}
elseif
( apply_filters(
'woocommerce_background_image_regeneration'
, true ) && is_multisite() ) {
/* translators: 1: tools URL 2: regen thumbs url */
$regen_description
= sprintf( __(
'After publishing your changes, new image sizes may not be shown until you regenerate thumbnails. You can do this from the <a href="%1$s" target="_blank">tools section in WooCommerce</a> or by using a plugin such as <a href="%2$s" target="_blank">Regenerate Thumbnails</a>.'
,
'woocommerce'
), admin_url(
'admin.php?page=wc-status&tab=tools'
),
'https://en-gb.wordpress.org/plugins/regenerate-thumbnails/'
);
}
else
{
/* translators: %s: regen thumbs url */
$regen_description
= sprintf( __(
'After publishing your changes, new image sizes may not be shown until you <a href="%s" target="_blank">Regenerate Thumbnails</a>.'
,
'woocommerce'
),
'https://en-gb.wordpress.org/plugins/regenerate-thumbnails/'
);
}
- /includes/rest-api/Controllers/Version2/class-wc-rest-system-status-tools-v2-controller.php line 240236237238239240241242243244245246
);
}
// Jetpack does the image resizing heavy lifting so you don't have to.
if
( (
class_exists
(
'Jetpack'
) && Jetpack::is_module_active(
'photon'
) ) || ! apply_filters(
'woocommerce_background_image_regeneration'
, true ) ) {
unset(
$tools
[
'regenerate_thumbnails'
] );
}
if
( ! function_exists(
'wc_clear_template_cache'
) ) {
unset(
$tools
[
'clear_template_cache'
] );
}