Hi there,
I am trying to get the_modified_author after updating the post through acf_form frontend; but its always NULL;
But when i update through admin/wp-admin the modified author returns the right author;
I have tried searching everywhere but i can’t seem to find a solution to this;
Thank you,
Tayyab
Has anyone found out a way to update _edit_last in conjunction with acf_form?
If so care to share the code?
Thanks in advance!
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);