get_the_modified_author();
isn’t going to tell you who published the post, just who last edited it. You will need to capture you publisher yourself.
function post_published_notification( $ID, $post ) {
$publisher = wp_get_current_user();
update_post_meta($ID,'my_publisher',$publisher);
}
add_action( 'publish_post', 'post_published_notification', 10, 2 );
Then use get_post_meta($post_id,'my_publisher')
to retrieve the data.
Of course there are a numerous ways to fine tune this. Do you want to only save the publisher the first time it is published, in those cases where that can occur? Etc.
Related Posts:
- Custom Table Column Sortable by Taxonomy Query
- Vertical alphabetically post columns
- make two custom columns sortables
- How do I set the default admin sort order for a custom post type to a custom column?
- Make custom column sortable
- visually sort ordering “custom post types” for end users
- Custom sortable columns ordered by meta-value?
- sortable custom column in media library
- initial sort order for a sortable custom column in admin
- Sortable admin columns, when data isn’t coming from post_meta
- How to Arrange Posts by Size in the WordPress Dashboard?
- Column sorting with emtpy meta values
- How do I allow users to sort posts? [duplicate]
- Sorting results from JSON-API on custom fields
- Sort users in get_users() in custom order
- Sort by custom field value
- How to sort posts with the first 2 or 3 by latest, and the rest is random?
- Get “wp_get_nav_menu_items” to sort alphabetically [duplicate]
- Ascending sort order for monthly & category view, i.e. ?m=201204, ?cat=4
- Adding Sorting to Website?
- Sorting by tag or category
- get_terms orderby name as numbers
- Creating a category page by alphabet
- How do I sort a custom post type admin column using two meta keys?
- Custom column sorting in WordPress admin post table
- Sorting get_post_ancestors array
- wordpress custom_meta ordering of timestamps
- Multi-level ordering in WordPress
- Sorting for custom column in WordPress admin post table
- Help alphabetically sorting $terms from get terms(‘wpsc_product_category’
- Advanced custom fields sort repeater by date
- Admin multiple column sorting
- Advanced Custom Fields: Sorting custom columns with custom fields sorts only by date
- Displaying posts sorting by a custom criterion
- Sorting custom post type by usermeta
- Sort posts by meta key that is serialised with other meta keys
- Admin table list API?
- orderby field – list of available options?
- User Query sort on custom field then name
- WP Query sort by meta value
- Order a custom post type admin screen by a second custom post type title
- Best Practices for a Completely Customizable Homepage – without plugins
- Sort by site/blog column in Multisite
- Sorting posts by custom field value
- How do I create a sort capability by Title, Category, Author, Date?
- How to avoid duplicating same meta_value?
- Sorting/Filter posts from front-end in WordPress blog
- ‘sort_column’ => ‘menu_order’ not working
- Sort scheduled posts in ascending order by default
- How to sort by number
- sort items by randomness
- inner foreach loop sorting
- Make a custom column sortable by a value from a different custom post type
- Sortby parameter to sort users
- Update meta_key value for a page
- Sorting custom post types in edit.php : Post disappear
- Sort my event calendar by date
- Is there way to toggle the publish date display?
- Table Sorter sort by span title?
- How to display remaining post ( in post__in ) if posts are less then post per page?
- ACF pro: Group teaser by datepicker year and display custom sub fields [closed]
- Sorting in WP_List_Table class
- How to sort custom posts including null meta-values in admin columns with meta_query?
- Sort an array with an ACF meta key
- Sortable admin columns by 0.00 number
- Static front page and orderby
- Custome column sort by date not title
- Advanced sorting of content in wordpress [closed]
- Sort posts by first content letter
- Grouping posts starting with same letter
- Getshopped (WP-e-commerce): show all protucts on one admin page for drag-and-drop ordering [closed]
- Change column of row action (Quick Edit) links in WP_List_Table
- Make custom post type column sortable
- Tracing dashboard publish settings from input form in WordPress
- List CPT by menu_order with children right after parent
- Multidimensional array sort?
- How can users sort multiple pages?
- Simple Data Table Update and Page Integration
- Can’t sort custom column on user.php by number / meta_value_num?
- How do i Sort my Posts
- How to resort my id in wordpress?
- Sorting Users page admin column with ACF field
- Sort Featured Content by Order instead of ID
- How to sort a non-meta field in the User Admin Panel?
- Visual Studio SignTool.exe Not Found
- How can I fix fatal RevSlider error in dashboard after upgrading to PHP 7? [closed]
- Changing Admin Menu Labels
- Adding custom columns to custom post types
- How to filter post listing (in WP dashboard posts listing) using a custom field (search functionality)?
- Adding ‘menu order’ column to custom post type admin screen
- Can the Next/Prev Post links be ordered by menu order or by a meta key?
- Query to sort a list by meta key first (if it exists), and show remaining posts without meta key ordered by title
- WordPress 3.8 – Dashboard 1 Column Screen Options
- Possible to hide Custom Post Type UI/Menu from specific User Roles?
- Sort results by name & asc order on Archive.php
- How to remove these fields from the ‘Profile’ section?
- Style custom columns in admin panels (especially to adjust column cell widths)
- Ignoring initial articles (like ‘a’, ‘an’ or ‘the’) when sorting queries?
- How can I delay the publishing of a page or post?
- Custom columns for taxonomy list table