Skip to content

Commit 3dff483

Browse files
authored
Merge pull request #343 from athemes/improvement/rt/wprocket-integration
WP Rocket integration improvement and quick view new hook
2 parents 6ebb8a8 + bf4ed10 commit 3dff483

File tree

3 files changed

+535
-0
lines changed

3 files changed

+535
-0
lines changed

functions.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,13 @@ function botiga_deactivate_ele_onboarding() {
538538
require get_template_directory() . '/inc/plugins/woocommerce-eu-vat-compliance-premium/class-woocommerce-eu-vat-compliance-premium.php';
539539
}
540540

541+
/**
542+
* Load WP Rocket compatibility file.
543+
*/
544+
if ( defined( 'WP_ROCKET_VERSION' ) ) {
545+
require get_template_directory() . '/inc/plugins/wp-rocket/wp-rocket.php';
546+
}
547+
541548
/**
542549
* Upsell.
543550
*/

inc/plugins/woocommerce/woocommerce-template-functions.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,9 @@ function botiga_variable_add_to_cart( $product, $prefix = '', $remove_botiga_pre
357357
do_action( "{$hook_prefix}before_single_variation" ); ?>
358358

359359
<div class="woocommerce-variation single_variation"></div>
360+
361+
<?php do_action( "{$hook_prefix}single_variation" ); ?>
362+
360363
<div class="woocommerce-variation-add-to-cart variations_button">
361364
<?php do_action( "{$hook_prefix}before_add_to_cart_button" ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound ?>
362365

0 commit comments

Comments
 (0)