Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Updated has_block_template hook to use correct woocommerce_ prefix #5038

Merged
merged 1 commit into from
Oct 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/BlockTemplatesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function render_block_template() {
! $this->theme_has_template( 'single-product' ) &&
$this->default_block_template_is_available( 'single-product' )
) {
add_filter( 'wc_has_block_template', '__return_true', 10, 0 );
add_filter( 'woocommerce_has_block_template', '__return_true', 10, 0 );
}
}
}