Written by Admin on 2025-05-06

How to Open WordPress Plugin Downloads in a New Tab

How to Open WordPress Plugin Downloads in a New Tab

If you've ever tried to download a WordPress plugin, you may have noticed that by default, the download link opens in the same tab. This can be frustrating if you want to continue browsing while the download is in progress, or if you accidentally close the tab and need to start the download again.

Fortunately, it's easy to change this behavior so that plugin downloads open in a new tab. Here's how to do it:

  1. Log in to your WordPress site and go to the "Plugins" page.
  2. Click the "Add New" button at the top of the page to go to the plugin repository.
  3. Right-click the "Download" button for any plugin you want to download.
  4. Select "Copy link address" from the context menu.
  5. Go to your website dashboard and click on "Appearance" and then "Theme Editor"
  6. On the Theme Editor page on the right side (you may need to scroll there), find and click on the file functions.php
  7. Add the following code at the bottom of the file:

php function custom_plugin_download_link($link, $plugin_file, $plugin_data) { return str_replace(' href=', ' target="_blank" href=', $link); } add_filter('plugin_row_meta', 'custom_plugin_download_link', 10, 3);

  1. Click "Update File" to save your changes.

That's it! Now, when you click on a plugin's "Download" button from the Plugins page, the download link will open in a new tab. This makes it easy to continue browsing and working on your site while the download is in progress.

If you ever want to undo this change and go back to the default behavior, simply remove the code you added to the functions.php file and save the changes.

How to Download All Post Content from WordPress Blog The Risks of Using Finance WordPress Nulled Themes and Plugins How to Download Premium WordPress Templates How to Download and Install a Flash WordPress Theme WordPress Download Manager Fatal Error: How to Troubleshoot WordPress Theme Maker Software Free Download How to Download a CSV File of Post Views on WordPress.com Downloading Image Files from WordPress Source Code noh8fe.nulledscripttor.com kx713h.nulledscripttor.com o0fom4.nulledscripttor.com 15bpjx2.nulledscripttor.com