Merge pull request #31565 from johnregan3/31252-woo-var-header-hook

Add $loop var to woocommerce_variation_header hook
This commit is contained in:
Barry Hughes 2022-01-24 10:51:51 -08:00 committed by GitHub
commit ee76f6939d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -57,8 +57,9 @@ defined( 'ABSPATH' ) || exit;
* @since 3.6.0
*
* @param WP_Post $variation Post data.
* @param int $loop Position in the loop.
*/
do_action( 'woocommerce_variation_header', $variation );
do_action( 'woocommerce_variation_header', $variation, $loop );
?>
</h3>
<div class="woocommerce_variable_attributes wc-metabox-content" style="display: none;">