I'm using Wordpress and ACF / Advanced Custom Fields to add various fields related to my contact OPTIONS page. I need to retrieve the date the the last time the "UPDATE" button was hit.
I have tried to sue the the_modified_date(); but this give me the date the actual contact page post-type was last updated and not the OPTIONS page was
My ACF field setting rules: Show this field of OPTIONS PAGE is equal to CONTACT
The OPTIONS page is a plugin, so i can add all the ACF fields to the plugin instead of to a page. Code used for adding the options page:
if( function_exists('acf_add_options_page') ) {
$contactOrder = get_field('about_order', 'option') + 2;
acf_add_options_page(array(
'page_title' => 'Contact',
'menu_title' => 'Contact',
'menu_slug' => 'tsum-contact',
'capability' => 'edit_posts',
'redirect' => false,
'icon_url' => 'dashicons-info',
'position' => $contactOrder
));
}
Code to show modified date of a page, but not what i want:
<?php the_modified_date(); ?>
My end goal is to use this time stamp for further calculations, but I just need help to get the timestamp.
Thank you.