Created
July 1, 2020 13:40
-
-
Save shubhw12/4a726ee9600cca07beb6be8c939181cc to your computer and use it in GitHub Desktop.
Custom subtitle
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
add_action( 'astra_woo_single_title_after', 'custom_sub_title', 10 ); | |
function custom_sub_title() { | |
$data = get_post_meta( get_the_ID() , 'wc_ps_subtitle', true ); | |
if( $data ){ | |
?> | |
<p class="custom-product-subtitle"> | |
<?php echo $data ?> | |
</p> | |
<?php | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment