Late answer
WP core offers a function for that case, that makes it much easier and future proof: Simply map it on each item.
Wrapped up in a plugin
Best used as mu-plugin.
<?php
/* Plugin Name: (#32093) »kaiser« Open "action"-links in post type list screens in new windows/tabs */
function wpse32093_link_target_blank( $actions, $post )
{
return array_map( 'links_add_target', $actions );
}
// Add to each post type
foreach ( array( 'post', 'page' ) as $post_type )
add_action( "{$post_type}_row_actions", 'wpse32093_link_target_blank', 20, 2 );
The plugin is tested and works seamlessly. You can adjust the post types where you want to have it active in the array inside the foreach loop.
Related Posts:
- What does this PHP function code mean? [closed]
- Restrict custom post type to only site administrator role
- Linking Two Post Types
- How to force one column layout on custom post type edit page?
- Admin Post Update Redirection to Posts Screen
- modify all posts of a category to “no comments allowed”
- Why is the »_builtin« parameter not advised in »register_post_type()« for custom post types?
- Showing current taxonomy terms
- automatically create taxonomy with same name as post title
- Assigning a role to a specific custom post type (and ignoring other post types)
- Display posts in random post types
- Custom Post Type by user
- saving custom post type data to different table in wordpress
- Query post types with multiple keys
- [Plugin: Posts 2 Posts] Changing display order of connections
- same archive template for different custom post
- Get all posts WHERE custom_field is LIKE value
- Get the post children count of a post
- How to delete all posts from a custom post type?
- Community and User Generated Content Website: Have been thinking about Drupal but leaning on WordPress heavily
- Check Title Unique Or Not and If not error message and dont save
- Remove All, Published and Trashed Post Views in Custom Post Type
- How to customize admin posts based on the user who is logged in
- How to post twitter like updates on wordpress
- Show Two custom Post type and their posts on category page
- apply filters only to specific post listing without check the url parameters
- Custom post type and body_class: Remove “blog” class
- Deleting Custom Post type data using mySQL command
- How can I create a custom meta box to add an mp4 video to a page?
- Remove rows in the manage post/page view
- Display only one post each WEEK
- List custom taxonomy specific to one custom post type
- How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?
- Meta query for custom post type ignored in main query
- Show titles, date of all posts on single category page
- No Permission to add new Page, Post or CPT with Admin role
- Update postmeta Parent when post_status child change
- Admin Column does not populate with data
- Allow users to create posts without logging in?
- How to sort posts in a custom post type by title in ascending order by default?
- Get_the_terms restrict output
- Custom post type menu
- YOAST SEO won’t work on custom post type archive [closed]
- Separate Content from gallery (custom post type)
- WordPress Count posts within a custom post type
- Custom post type tags not showing in search
- Function to add custom HTML into head in custom post-type list page
- How set template for “custom post type” individual post
- Why is my custom post content only viewable when signed into WordPress?
- Best way to fix bad count on All | Mine | Published
- How we can create menu from Appearance > Menu and use as a add-submenu-page for admin menu?
- Adding specific custom fields (images) to post excerpt
- Limit posts per page depending on the size of a div?
- Delete Post by User
- creating a custom post template
- Problem to get the link of the default ‘post’ post type like the orther custom types
- One Post with different content, depending on a Page
- Custom Post Type
- WordPress Author Posts Review After Every Change In The Same WordPress Post
- Display all post types together
- Collection of fields in a single post
- Turn post into simple slideshow
- Query multiple post of which one by taxonomy
- How to make a template for a specific post of a custom post type?
- How to delete unnecessary custom post types in the UI
- How to create a job post by email parsing? [closed]
- show posts under custom post type with same autj
- How to automate the creation of advanced layout article/post
- display posts, pages and custom post types from another wordpress site
- is therer any wordpress function to retrieve a specific html element from post content
- How to develop Knowledge center in WordPress Website
- ACF – Tags not showing up in Custom Post Types
- How can i create an custom post template for an specific post category? [closed]
- how to check if custom post title exists or not?
- Modify previous and next post links to current Authors Other posts
- How can I have different content for different countries?
- How to insert data into meta box from another plugin?
- Generate new post from email
- Batch Extract Date from post title and put into ACF custom field
- Display custom post type for specific user
- Use post in multiple places on a page with multiple posts
- $wpdb is queried but results don’t show
- Making a form for user to add new custom post with custom taxonomies and custom fields
- Custom post type filter is being applied to all of my posts
- Admin slow on Postlist (over 30k Posts in Database)
- Post category behave like a Post in back office menu
- Save data is post using php front end
- What is the best way to structure posts for the same event happening in different years?
- Custom page with no headers, footers and its own CSS, Javascript
- edit.php all post not working
- Automatic Set Category For A Custom Post Type
- How can I get the last 5 element of this tax query?
- How can i order my posts by post type?
- Permanent Custom Post Type
- Create an administation subpage containing posts in a certain category
- Different post types arranged on one page
- Exclude categories For Custom post types
- How to add custom column to Custom post page list?
- Same slug for Custom Taxonomy archive and CPT archive – Rewrite rule not working
- Custom post type URl Cutomization