Created
June 23, 2020 09:50
-
-
Save farookibrahim/b9797e737de3b21d6c1e4e5df34ede54 to your computer and use it in GitHub Desktop.
Cartzilla - Single Product Custom "Released" Date
This file contains hidden or 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
| if( ! function_exists( 'cartzilla_wc_product_publish_date' ) ) { | |
| function cartzilla_wc_product_publish_date() { | |
| global $product; | |
| $released_date = get_post_meta( $product->get_id(), 'released_date', true ); | |
| ?> | |
| <li class="d-flex justify-content-between mb-3 pb-3 border-bottom"> | |
| <span class="text-dark font-weight-medium"><?php echo esc_html('Released', 'cartzilla'); ?></span> | |
| <span class="text-muted"><?php echo date( 'F j, Y', strtotime( $released_date ) ); ?></span></li><?php | |
| } | |
| } |
Author
farookibrahim
commented
Jun 23, 2020

Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment