plugin updates

This commit is contained in:
Tony Volpe
2024-11-15 13:53:04 -05:00
parent 1293d604ca
commit 0238f0c4ca
2009 changed files with 163492 additions and 89543 deletions

View File

@@ -641,8 +641,13 @@ class WC_Shortcode_Products {
do_action( "woocommerce_shortcode_before_{$this->type}_loop", $this->attributes );
// Fire standard shop loop hooks when paginating results so we can show result counts and so on.
if ( wc_string_to_bool( $this->attributes['paginate'] ) ) {
/**
* Fire the standard shop hooks when paginating so we can display result counts etc.
* If the pagination is not enabled, this hook will not be fired.
*
* @since 3.3.1
*/
do_action( 'woocommerce_before_shop_loop' );
}
@@ -667,8 +672,13 @@ class WC_Shortcode_Products {
$GLOBALS['post'] = $original_post; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
woocommerce_product_loop_end();
// Fire standard shop loop hooks when paginating results so we can show result counts and so on.
if ( wc_string_to_bool( $this->attributes['paginate'] ) ) {
/**
* Fire the standard shop hooks when paginating so we can display the pagination.
* If the pagination is not enabled, this hook will not be fired.
*
* @since 3.3.1
*/
do_action( 'woocommerce_after_shop_loop' );
}