Created
July 1, 2022 15:05
-
-
Save tdmrhn/5d673c89a4223da3a55aa91164fcc9d6 to your computer and use it in GitHub Desktop.
Blocks Product Reviews show featured image before decription
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'blocksy:hero:before', function ( $post_id ) { | |
if ( is_singular( 'blc-product-review' ) ) { | |
echo get_the_post_thumbnail( $post_id, 'full' ); | |
} | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment