finally I found the answer.
function hide_edit_book_update(){ ?>
<style type="text/css">
.post-php.post-type-book #publishing-action {display:none;}
</style><?php
}
add_action( 'admin_enqueue_scripts', 'hide_edit_book_update' );
add new post and edit post we can differentiate from post-php and php-new-php css class
Related Posts:
- How to enqueue scripts on custom post add/edit pages?
- Calculate Repeater Meta Box Input Field Values and Display Total
- How to localize value of posts
- How to create a repeatable / reusable divs in the metabox?
- Custom Scripts per page or Custom Post Type
- How do you use JavaScript to detect the homepage
- wp is not defined error using wp.media to create a custom image uploader
- WordPress Rest API only returns content when posttype has editor capability
- Open div inside a custom post-type with Fancybox
- Very simple wordpress block to display posts from an api call
- How to get the parent of a non-hierarchical custom post type being edited in Gutenberg
- Storing posts from query and accessing later via AJAX call
- Push metadata in array
- Save the post parent in a custom post type in Gutenberg
- Plugin – Combine Meta Box Input Fields into single saveble record
- JS innerhtml changing style when using AJAX
- Side effects of Script and Iframe in post
- Dynamic Custom Fields
- Multiple Frontend Filters Using Advanced Custom Fields
- Extracting Address from Custom Post via Javascript for Google Maps API
- Combine multiple getEntityRecords calls
- Custom Post Type Slick Slider “$ is not a function”
- Using wp_localize_script to get data from cpt and pass it to maplace-js locations
- Get data from PHP to JavaScript to set position of each post on front page
- Why is wp api returning old acf values?
- Loading multiple post content in FancyBox
- Weird issue where form field loses focus to previous form field even with JS disabled
- WordPress/Javascript form not working on custom post type single posts
- Create a Dropdown Selector and Redirect for a Custom Taxonomy in WordPress?
- How can I put content before my custom post type default pages?
- URL issue retrieving Custom Post Types using Backbone JS API
- Randomizing WordPress Custom Post Type Sorting Through Them Without Page Refresh
- How can I use javascript in specific posts without relying on a plugin?
- How to use posts as tabs in a custom page?
- WordPress custom post type post item data – show/fetch only on click with Javascript dynamically?
- localize_script or rest api
- dynamic vue widget inside custom post
- How to make sure, that only the selected post is changing?
- Redirect sub-page URLs to parent without changing URL
- Loops running into each other
- Passing total post count to javascript
- get total post in category via ajx
- Default post showing more than intended
- Load more post with AJAX
- Post current post type to my Ajax
- how to group custom post types
- How to filter post data with AJAX on page?
- Add Capabilities to Custom Post Type after it has been created [duplicate]
- Hook when adding or editing a specific custom post type? [closed]
- Allow duplicate slugs for posts on Custom post type in different categories/taxonomy?
- Assign category to front end post
- wp_query and comment_parent – select only posts with top level comments
- Taxonomy structure of Sport site
- How can I add a column in the wp_list_table of the admin area?
- Custom Post Type with static page for archive
- How to filter the description of a custom post type
- Trigger “unsaved changes” dialog for custom post meta changes
- How does the $post_type global variable work?
- how to check if custom post type exists in wordpress
- Archive slider for CPT
- Custom taxonomy in custom post RSS feed
- Custom Taxonomies not appearing in Admin
- How to create custom post type like Page
- Notice: Undefined index: error and understanding wordpress
- Problem loading custom post type admin page
- Can taxonomies of custom post types be used with category actions?
- Advanced Custom Fields Plugin – Conflict with Custom Post Type Default Editor
- 404 error when navigating to a taxonomy page with Cyrillic, what’s wrong?
- Custom post type as home page with custom url
- Creating a Custom Post Type
- How to make front end form only accept certain values
- Can NOT search my custom post type?
- Why won’t this jQuery code work?
- Template for custom post type when taxonomy is in the URL
- Targeting child pages of custom post types using function?
- Query custom post types & Taxonomies and list them in a table on a page
- How should i sort “Last Update” Custom Column?
- Modify a plugin function output from another plugin
- Yelp-style geographic directory plugin?
- Modifying search results based on post_type
- WordPress general content best pratices
- Stop displaying Permalink
- Custom post type template – add banner under heading
- posts_per_page is not working by term
- % encoded URL giving 404 error in WordPress
- Multi Photo Upload with Caption on Front End for Custom Post Type
- Limit Number of Custom Post Type Dashboard
- Reference field of users in custom post type
- Avoid another meta box in my custom post type
- Not Able to Get Custom Post Type in Single and Single-custom-post-type
- Get posts of an specific term of a custom taxonomy
- WP_Query return highest number only
- Add a meta to custom post type which corresponds to a particular taxonomy
- Hook only specific post type
- Storing postID in session variable to query database when visitor on custom template page
- Create a Page Templete to Display Table Of Content for Custom Taxonomies
- send user to first page of results when reposting to page?
- How to create a job post by email parsing? [closed]
- How to Retain Original URLs When Migrating 100 WordPress Posts to BetterDocs Custom Post Type
- How to create alias / synonym links to existing posts