Created
June 24, 2020 08:15
-
-
Save farookibrahim/ae6cb883dda38b2f484fdc7ed19cc5ad to your computer and use it in GitHub Desktop.
Cartzilla - Single Product Custom "Last update" 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_modified_date' ) ) { | |
| function cartzilla_wc_product_modified_date() { | |
| global $product; | |
| $updated_date = get_post_meta( $product->get_id(), 'updated_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('Last update', 'cartzilla'); ?></span> | |
| <span class="text-muted"><?php echo date( 'F j, Y', strtotime( $updated_date ) ); ?></span> | |
| </li><?php | |
| } | |
| } |
farookibrahim
commented
Jun 24, 2020
Author

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