• Resolved valousal

    (@valentinanamorphik)


    Hi,

    In example, is it possible to change date format with saved date format on wordpress settings ?

    And add a hook if necessary ?

    <?php 
    
    // Template : plugins\wp-user-avatar\src\templates\checkout\form-checkout-sidebar.php
    
    (new DateTime($cart_vars->expiration_date, new DateTimeZone('UTC')))->setTimezone(wp_timezone())->format('j M, Y')
    
    // replace 'j M, Y' by get_option('date_format') ?

    Thanks.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Change format date’ is closed to new replies.