I need to convert the time on backend published time in wordpress from 24 hour to 12 hour format.
I tried using this code
add_action( \'post_submit