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
- How to connect different CPTs together?
- Check if post type has term
- How to remove Filters from post admin page?
- Query custom post type by custom field
- WordPress custom taxonomy URL rewrite on spelling errors
- Include post id[s] into WP_Query()
- How can i avoid the permalink start with ‘blog’ while using the custom post type?
- Defining a default page for custom post type
- Using Offset in Custom Post Type Query
- How to let custom post type posts show in standard post archive (like in homepage)?
- remove post-name from title in custom post type
- Sort the main query in subcategories/terms?
- Getting Post ID from slug during init
- Add Taxonomy Values Within a Custom Post Type RSS Feed
- Paginate Custom Post Type Page
- Highlight nav menu terms
- Get_post_meta() won’t return value
- Query in a Hierarchical Custom Post Type for Children vs Siblings
- Pagination Issue: Custom Post Type In Index
- multiple search forms and search results
- removing custom tax & CPT slug, adding taxonomy term in front of custom type
- How to create another version of the Category widget?
- Child Theme for Mobile Browsers
- Why is WordPress custom post type not showing in admin panel?
- Issue with pre_get_posts on custom post type archive pages
- Add html to cpt main page / admin edit.php
- Copy custom field value to post title
- How to show cutom post labels in options?
- WP_Query orderby modified to include custom meta changes
- List custom taxonomy specific to one custom post type
- Show child custom post types list inside single parent custom post type
- Create Connection Between two post types
- A case for Hierarchical Custom Posts
- Custom title set on quick edit
- Filter Posts from the Main Query
- Remotely search WordPress sites using xml-rpc
- Custom post type Permalinks with hierarchical Taxonomies
- Slug for custom post type
- Display post from a date range from custom field
- Set a hard-coded page-template (post-type-archive) as home/front-page of my wordpress blog?
- Displaying tags associated with posts in Custom Post Type
- Stores category posts in an array
- set_query_params using custom params defined in functions file?
- How to define the template for custom posts?
- Auto Expire/Delete Custom Post Type Posts after specified time
- Add post type pages with plugin
- Displaying custom post type listing
- Extend Custom Post Type
- Cannot Save MetaBox Data in Custom Post Type
- How to register a post type so I have archive page, but don’t have single pages?
- Do stuff when editing or writing a certain custom post type?
- WordPress sitemap with Custom Post Types
- Url Rewriting a dynamic wordpress page with parameters
- Display list of Custom Post
- php dynamic content inside shortcode
- Can’t save meta box data in WordPress using custom post types
- How to avoid duplicate posts queried from custom meta?
- Adding Post Title from custom post type to another custom post type
- How to merge 2 custom post type permalinks
- How to use multiple orderby conditions on query search results? (orderby one post type, relevance)
- Show posts from custom post type sorted by category/taxonomy on a one-pager/page
- Add input radio menu to post
- Adding Custom Post Types to category/tag/author archives breaks header content
- Combine all posts into one places
- next_posts_link() always generates second page link on custom post type
- Twenty Seventeen customizer front page section: How to use CPT?
- How to reset HTML filter input fields on CPT list page?
- Should I make a taxonomy to organize data like this?
- How to display post thumbnails from custom post type category on homepage?
- List all posts from custom post type by taxonomy
- WordPress custom field images not getting inserted into array
- how to override menu widget?
- What would prevent a custom role from viewing posts (both standard and custom)?
- changing post type in loop query
- What is the proper way implement a global $wp_rewrite?
- Custom Post Type Base URL
- Creating entries with image attachements within posts and managing them in a list
- Archive page – problem with pagination
- WP Query + custom fields: How to query event posts from the current date backwards 6 months and organize it month by month?
- Remote database access on another wordpress site’s custom post type