I believe the easiest approach is to hide that Preview button via CSS. Here is a snippet or you can add that style to a pre-existing wp-admin stylesheet that you might have already included.
add_action( 'admin_head-post.php', function(){
echo '<style>';
echo '.edit-post-header__settings .editor-post-preview { display: none !important; }';
echo '</style>';
});
I tried digging through the core and I don’t see any way to filter those links out.
Hope that helps!!
Related Posts:
- What is the use of to_ping and pinged column?
- Listen to Post action
- Export WordPress Posts and Meta Information in CSV format
- How to add post count to wp_nav_menu?
- Posting From Apple Aperture?
- how to show all post in my page-grid.php template page
- How to add padding between posts
- eBooks download website, page or post?
- Remove whitespace at the end of posts?
- Add few specific post ids to wp_query
- Code Blocks with WYSIWYG in blog post
- What Can I Use To Add A Custom Button Between Publish button and Move To Trash?
- generate unique slug while inserting post
- Add filter-by-tag in the all posts admin console page
- Can I hide a specific post from latest posts page?
- How to show post(excerpt) from specific category on wp page?
- get posts and postmetas in assoc array
- user contributed content as custom post types
- Is 30 posts/sec considered slow for wp_delete_post?
- How to load a different header based on post format?
- Get all images out of the posts content
- How to Use PHP Code In-Page?
- Getting current post ID in functions.php
- Understand post type
- Getting content from a single *page* of a post
- How can I show wordpress posts based on author?
- Remove certain post-formats from showing in blog?
- Avoid duplicate post from same Taxonomy
- Email Post Attachment on wp_insert_post Action
- Can I divide the pages into categories?
- Are private posts visible to search engines?
- Setting posts_per_page for taxonomy term template
- Change post order random through out the entire WordPress
- Posts gathered from WPEMatico feeds are being mixed in different languages. Polylang is used for language separation
- Turn On Comments On Custom Post Types in Directory Theme
- Automatically attach image to post if they have the same title
- Shortcode and whitespace formatting problem
- Using wp_list_pages() after calling query_posts()
- Delete pubished and unpublished posts with wp_delete_post?
- How to remove in-line style of WordPress’s post content only?
- How to Get Posts, Including Private Ones?
- Proper way of establishing custom landing pages in WordPress
- Query posts by Author and/or by Tag
- How do I show posts from another wordpress installation?
- How can I determine where I want to edit in the backend (server)
- Archive template combined with post slider and regular posts
- Is there a way to add the list of recent posts into the admin sub menu on hover?
- Create a custom posts page
- How to show a custom taxonomy in the theme?
- How to import nested categories from XML file?
- How to get different Related Posts
- How to Assign / Move all Deleted post to a category
- Using wp-cli and delete everypost first image
- Assigning Two Different Post Dates For Single Post
- Show posts by quarter
- Inserting an example of the last 3 post on to the homepage
- Make ‘blog’ page show content as well as posts underneath it
- how to get day month and year from wp_post_object?
- Using Posts Like a Page
- Pagination for normal (standard) posts on a page with a custom loop?
- Sidebar limiting to 10 posts?
- Attachment image single page
- Display content between two dates?
- How to associate a custom taxonomy to a post multiple times
- Post date automatically +100 years into the future
- Can I show category name in url for only one of my categories?
- How to let a user create a post by submitting a POST form?
- Featured image error after importing blog posts
- How to fix wordpress blog post error? Can anyone help to fix this issue?
- How do I remove all links from all my posts at once?
- Query prints posts without specific categories
- Display Updated Date Instead of Published Date
- Disable pagination in posts and pages
- wpautop filter off for pages but on for posts
- post categories – how to show only categories with a specific parent id
- Creating a “category” of featured posts
- How do I create a ‘selection’ criteria list’ that will then dictate which posts are generated when the user presses search?
- Post URL duplication adds numerical value
- Is it possible to display QUICK EDIT as default for all posts in wp-admin/edit.php page?
- get “read more” with custom DB query like you would with WP Query
- SQL query to remove first image in all posts
- Create custom URL with different levels
- some posts being displayed as pages
- Body text disappearing in random posts
- Get part of a page url
- How to use wp_editor(); in functions.php then retrieve content in the template
- Add default content to post (for specific category)
- Displaying posts on Homepage
- Adding a time stamp on post view
- The post order is different for logged-in and non-logged-in users? [closed]
- Display one post randomly from category on home page
- Change a div background color on Post ID
- How to show all Posts Image, Title and 3 line description on main page?
- append $_GET parameters to post
- CSS code for “inserting a custom post divider” after each post
- How can I add a custom caclulation form in post?
- Display post count on archive page in reverse order
- Displaying all images from a WordPress post (including media library)
- WordPress shows a count of published items on the site, but the items are not appearing when you click on the “published” link
- Restore posts, but only posts that exist in my database backup