You can use the post type within the action name and you gain the removing of an unnecessary check of the post type.
More on this wp_transition_post_status
For instance: When publishing a post for the first time, the post
status may transition from ‘draft’ – or some other status – to
‘publish’. However, if a post is already published and is simply being
updated, the “old” and “new” statuses may both be ‘publish’ before and
after the transition.
add_action( 'publish_flamingo_inbound', 'my_update_flamingo_inbound_author', 10);
And removing the check for post type:
if($post_type == 'flamingo_inbound') {
Related Posts:
- Automatically fill custom field value on post publish/update
- wp_update_post on specific custom post type
- wp_update_post based function works on existing posts, but not new posts
- Updating post title using wp_update_post
- How Can I Set the Post Author of a Post I Just Created With PHP?
- Insert and then update post_type by wp_update_post
- Posts are duplicating on wp_post_update
- Post author for revision not being set on update/insert
- How to automatic update date and time when save custom post type
- Programmatically change post visibility on save_post action return a 500
- Why does wp_update_post causes white screen?
- Update post if exist from PHP
- Odd behaviour for the update button when displaying a WP_List_Table
- How to keep a record of changes to a custom field?
- Updating a custom post status after an expiry date rather than trashing it
- Change the term based on the value of a $variable using wp_update_post in submitting a form
- save_post affect creation and deletion
- Can I override the permalink/slug on creation
- Custom Post save causes 500 error
- Change custom post status to draft before today
- retrieving external api data and updating existing custom post
- Manage Columns : order by post_parent’s title
- Different rewrite rules for taxonomies and cp in multisite?
- count results in search page based on custom category
- Limiting posts_join, where, etc to a specific WP_Query object?
- Trick to get custom post types to show up on a custom taxonomy page?
- What is the ID parameter for custom post types in query_posts?
- Number of posts in the archive
- More quicktag driving me nuts
- If there is only one post (show elements) else (show other elements)
- the_post() is printing titles in page footer
- Use remove_meta_box conditionally on custom post type
- create custom meta box with default value
- Create an archive page for custom post type with custom taxonomy
- Custom Post Types Archives and Single Pages not showing custom taxonomy data
- How to setup a single post page for my custom post type?
- Custom Post Type page sorts differently on different environments
- Custom Taxonomy Search result page
- Link From Single Post To Taxonomy Term Archive Page
- Undefined $post in wp_query
- fetch custom post by meta key if key value is does not know
- Get image from external URL
- Better approach for a WordPress Inventory
- Showing all posts and custom post types by using one category
- Issue with Custom Post Types and Single
- How do I edit the WordPress post.php file?
- Posts are not rendering perfectly [closed]
- Echo custom post meta from options array
- Filtering the_content, but still need to display the unfiltered content inside filter
- Value of post meta dropdown is not showing in WordPress
- WP not recognizing custom post type / template
- Looping through custom taxonomy and display custom post types (Custom Post Type UI)
- Order users by number of posts (includes custom post type)
- Displaying Portfolio Filter by Category Order (alphabetically)
- Function to add custom HTML into head in custom post-type list page
- Invalid file type when using wp_upload_bits to upload PDF to a custom post type
- custom post type capabilities – needs to be VERY secure
- How to create subdomain for custom post type and associated custom taxonomies
- What is the parameter : ‘Customs-fields’
- set post_type based on custom taxonomy permalink
- Get previous and next custom post by custom field
- Show only Current category and sub category of custom post wordpress
- Order posts by taxonomy terms
- Creating post template for a Custom Post Type
- WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
- Why are custom taxonomies only appearing on the edit page of one of these types, but not the other?
- Add Custom Field in Product in WP Admin and send to Order Webhook
- How to associate custom taxonomy terms with custom post type?
- Is it possible to create 2 unique titles for an Events custom post type: Upcoming Events and Past Events?
- WP_Query not using custom taxonomy categories on custom post type
- Taxonomies are not showing in the category dropdown
- Add Pagination in custom Blog page template
- get_the_terms child terms for current post/custom post only
- Show Recently Viewed Custom Post to the visitor without plugin
- Custom Post Type Query by user id
- Display title of custom post type dynamically
- If custom taxonomy exist on post?
- WordPress Custom post type slug rewrite
- How to sort custom post’s category by id from the theme’s function.php?
- How to add New Post On clicking a button?
- How to handle single entries of a custom post type?
- How to register rows (resource) from custom table as posts of custom type on-the-fly?
- Show first posts with custom field not empty and order all by title
- Certain number of posts with certain excerpt length
- How to add base permalink to custom posts?
- post_type_exists keeps returning false
- Rewrite rules causing hole
- Using a Taxonomy in Two Spots in a WordPress Post
- Issue on adding Icons to Custom Post Type
- Query a custom taxonomy for certain posts
- how to remove user name and date in post page
- How can I sort posts ascending by post title for a specific post type, but on a category archive template?
- Save number of Facebook likes to database
- Random ID for custom post type
- Removing custom post type name in single article URLs
- Add /blog to the “post” post type url
- Navigation links to posts in current term shortcode
- Pagination for custom post type on multisite not working
- Get Posts ordered by a date custom meta field
- Canot save post if any meta box was empty