This is the solution:
add_filter( 'myblogs_blog_actions', 'my_sites_visit_site_target_blank', 10, 2 );
function my_sites_visit_site_target_blank( $actions, $user_blog ) {
$to_replace = ">" . __( 'Visit' ) . '</a>';
$to_replace_with = " target="_blank" >" . __( 'Preview 1' ) . '</a> | <a href="'. esc_url( get_home_url( $user_blog->userblog_id ) ).'/customfolder/" target="_blank">Preview 2</a>';
return str_replace( $to_replace, $to_replace_with, $actions );
}
Related Posts:
- Can we use one WordPress installation for multiple databases, domains and content directories
- .maintenance and maintenance.php also in multisite install?
- global menus made from master site’s custom menus wpmu network
- Can You Export Theme Settings From WordPress Multisite?
- WordPress Multi Site Best Practice
- How to run a test WordPressMu to WordPress3 update?
- Suggestions for WPMU Migration (advanced)
- WordPress Network Feature
- Multi-Site Plugin Activated (Not Network-Activated), What Happens?
- Custom column under All Users (multisite network admin)?
- Syncing Avatars across multisite
- Why would switch_to_blog stop working?
- Override database config for WordPress multiblog
- How to insert a sitemap within a subsite when using WordPress multisite
- Add custom user profile field to default WordPress MultiSite registration form
- Turn off redirect to canonical domain (or host website on any hostname)
- What changes we need to make to a theme so it can be installed as a MU Theme?
- Multi Site installation inside a sub domain inside a sub directory
- Showcase elementor templates
- Create custom dashboard for Multisite admins
- One WordPress Installation for 2 Domains
- How can I create a second multisite network in a subdirectory?
- Manage multiple domains from one backend
- Static admin page for all multisite users
- One WordPress install for main site at domain.com and blog at blog.domain.com?
- What is the best way to move a single site from one MS installation to another? [duplicate]
- Multi-site User Sessions
- What happens to the mu-plugins folder when you upgrade to WordPress 3?
- In WordPress 3.x, I can’t access posts from all blogs in the network
- I w’d like to know If there are simple solutions to integrate other CMSs to wordpress
- Add the site’s name as prefix when adding new users? Multisite
- Open “Visit site” in a new window?
- Allow multisite admins only to create users with one specific user role?
- Prevent Multisite from creating sample page, sample post and sample comments
- How to have multiple WordPress Menus
- Create new network instance, import old single installs AND keep the urls?
- How to do multi site setup
- How can I resolve a .htaccess internal server error setting up a WordPress multisite?
- how or where wordress collect unlogged user session
- Global theme customization multisite
- Multisite with subdirectories, and a WordPress installation in a custom folder
- website is not loading home page (moving from one server to another server)
- Is MultiSite the Correct Solution for a Corporate Site with Searchable Regions?
- How should I design subcategory login site?
- How to have differents sites share the same tables of DB?
- Create page when a new site in multisite network is created?
- Get site ID from attachment url?
- Multi-site customization
- How to: Easily Move a WordPress Install from Development to Production?
- Is there a flowchart for WordPress loading sequence?
- Essential technical features for high-end WordPress web hosting? [closed]
- How to remove admin menu pages inserted by plugins?
- How to put logs in WordPress
- How to get the Date Format and Time Format settings for use in my template?
- How To Add Custom Form Fields To The User Profile Page?
- Where are Additional CSS files stored
- Best Practices for Regression Testing WordPress Websites?
- Remove wrapping div and ul from output of wp_nav_menu
- What Is The Use Of map_meta_cap Filter?
- get post author id outside loop
- Custom Walker: how to get ID in function start_lvl
- Creative uses of WordPress [closed]
- How to *remove* a parent theme page template from a child theme?
- How do I make my child theme re-apply the settings that were customised when its parent was active?
- Multiple Inputs in a Customizer Control
- New WP_Customize API – how does it work under the hood?
- Embedding a SOAP Client into a WordPress Plugin?
- Is there anything that Joomla or Drupal can do that can’t be done in WordPress? [closed]
- Update widget form after drag-and-drop (WP save bug)
- Data sanitization: Best Practices with code examples
- How to benchmark a WordPress installation? [closed]
- Specific upload folder for PDFs in custom Post type in WP multisite
- Should I delete the default themes?
- Moving WP install from local to live, what about wp_posts GUID?
- Modified wp.media.view.Settings.Gallery in Backbone JS, but editing doesn’t work
- Running Gutenberg React in Development Mode
- Prevent WordPress from automatically installing a new theme each year
- Is there a blank theme framework compatible with WP 3.0? [closed]
- Plugin SVN & update API – how are plugins identified?
- Users with custom roles not showing in post author select box
- How to delete post revisions?
- How to use more than 256MB of memory in the admin?
- Add additional Network constants to wp-config.php dynamically
- How do register_sidebar() and get_sidebar() work together?
- How do you get formatted content of a post using the WordPress API?
- Localization: I want the backend: english and frontend in defined language
- Are there any forks of WordPress (and what is different about them)?
- How to Change 404 page title
- Make Custom Metaboxes Collapse by Default
- WordPress Paginate $wpdb->get_results
- Custom maintenance page
- Add button to TinyMCE bar without creating a plugin
- Why do I get the timeout warning?
- Anyone figured out how to use WordPress MultiSite with Domain Mapping & SSL?
- How to add a new product type on woocommerce product types? [closed]
- How to include own css on wordpress tinymce editor?
- How to disable page delete
- add button to post edit page when post_status=publish
- how to override woocommerce specific loop or archive-product.php [closed]
- Can upload doc and pdf but not ppt – not permitted for security reasons