Home › Forums › Front-end Issues › _edit_last not being updated on when using frontend › Reply To: _edit_last not being updated on when using frontend
This is working for me, it updates the last modified author when editing from the front end.
Just add this to your functions file.
function user_acf_save_post( $post_id )
{
update_post_meta( $post_id, '_edit_last', get_current_user_id() );//update last modified by
}
// run after save post
add_action('save_post', 'user_acf_save_post', 10);
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.