To get the post author ID you can try:
$revisions = wp_get_post_revisions($post->ID);
//For first author
$first_author = $revisions[0]->post_author;
//to get all revision authors
foreach( $revisions as $revision ){
echo $revision->post_author;
}
Related Posts:
- Why does get_users suddenly return duplicates?
- Updating wp_options with an array on save_post results in duplicated entries
- Passing a variable into Contact Form 7 [closed]
- Comma seperated list of ID’s as an array?
- update_post_meta from data in multidimensional array created from a form
- post__in works but also prints the word Array
- Make Selected Mutiselect Items “selected”
- settings api store multiple array
- if is_singular array not working as expected
- How do I update a specific object in an array, in user meta?
- Get posts id in array by meta value and key
- How to save array of datas in option page by setting api?
- Sort a custom post type array numerically
- How to add day number and initial to my post graph?
- How to validate register settings array
- How to check an array of $curauth fields?
- Problem with wp_update_post
- Replace text inside a huge multidimensional array
- How to use IN array properly in WordPress?
- WordPress Plugin Dev: Using array for WP options
- Only a part of array is stored in transient – what could be causing this?
- update_post_meta() with a modified array?
- How to get update_post_meta output to include string length
- Return array keys and values
- How pass a 0 in $atts?
- How to save data of an input field to an array
- Retrieving multiple values to the Post Meta (using an array)
- Echoing a variable inside a function
- Stuck with a Custom Field Check box Array
- Compare with WP Meta Query
- How to pass conditional array to wp_localize_script
- Modify foreach loop for social sharing links?
- Combine get_page_by_title to exclude pages from wp_list_pages
- Plugin settings page checkbox not saving – one options array with sub array
- Selecting and outputting results from DB with an array
- Struggling with array and foreach loop
- Update post meta does not serialize array
- Customizer Settings in Arrays
- WordPress i18n in Array throws Error
- How to use json_decode a post_meta value? [duplicate]
- How to decipher the following array
- Save meta box values as an array to wp_postmeta
- How to display line breaked meta values in table?
- array_filter warning – wp-includes/post.php line 3148
- Hide sidebar if post_type is in array
- Array in meta key?
- Saving array keep adding length of array
- Obtaining values from objects
- How to get a page array and category array going at the same time?
- get_the_terms, whether I should use string or array as the second parameter?
- Print specific values stored in a post meta array
- Do not replicate items if they exists in a foreach loop
- How to put an array in wp user query
- Get the values from an array string to work with post__in
- return paginate_comments_links() as array
- Inserting a random number into an array [closed]
- Get array value
- update_user_meta duplicates entry
- Ways of dealing with nested arrays within option
- Add formatting to Array
- How to randomise my menu items?
- Taxonomy terms not properly displaying as array
- WordPress, result array of ‘post_name’
- Why are array_slice() and array_chunk() not working?
- Retrieve array items without page ID
- Add Array record to Meta Post
- How to avoid duplicate users when I am using get_users?
- Strange Behavior with update_option
- wp_update_post to set post IDs to drafts not working
- How i can extract data
- How to set an array of current usernames
- Show Tags of Custom Post Type outside of Loop
- “Undefined variable: array” Error In Displaying Post Tag
- wp_set_object_terms not accepting variable array
- How do I pull post from standard post format?
- WPML admin texts with serialized objects
- Merge arrays and order set and subset as one
- The writing ( with foreach) of the keys of an array of objects to a new array produces fatal error
- Create dropdown menu of all tags used in category
- How can I get a list of custom post IDs into a variable I can use for another function?
- using array in wordpress database query
- Echo the key from a select-box in Array with get_option (Settings API)
- Updating wordpress user meta data array (unexpected multiple arrays)
- update_post_meta array issues
- Get custom_user meta value and add entry
- How do I retrieve an array from wp_postmeta with get_post_meta?
- post custom values
- Accessing value from associative array
- Accessing array elements (get_pages)
- Printing out JSON array returned [closed]
- How to check if the postID is in an array? [closed]
- Fatal error in my WP
- Marketpress php warning on server, no problem on localhost [closed]
- SQL query add only posts with custom field to array
- Combine two foreach Arrays into one table row
- Insert data into custom table from fetching $_POST values
- Populate Array with values from another arrray [closed]
- how to separate array with commas? [closed]
- JSON webhook WP Automator – Help with Syntax [closed]
- Multipe array in meta_input