That menu is rendered by a function called _wp_menu_output
in menu-header.php
and I don’t see a hook that will let you alter the HTML for those links, which is what you’d need to do– ie. <a target="_blank" ...
That being as it is you will probably need to do this with Javascript either by rewriting the markup to have the target attribute or by intercepting the click and opening a window.
No matter what you do, though, the browser wins. The user can undo your efforts with browsers settings and/or browser extensions.
Related Posts:
- wp_ajax_ 400 Bad Request
- Woocommerce – if selected attribute term equals
- AJAX to add to cart multiple products woocommerce
- Change CSS Variable value in Theme Customizer Live Preview
- WordPress Slick Slider + Magnific Popup
- Using wp_editor() when not logged stopped working
- update_post_meta Not Processing Array Data (Not Sure What I Am Missing)
- Show the subcategory name based on current product
- wp_set_object_terms returns 500 error when called through AJAX function
- How can i send id of the currently posted form data through json response in custom wordpress plugin?
- Cannot successfully execute AJAX script to call function.php specific function. Using XAMPP localhost to test
- JQuery modal not loading video on popup, only displaying it after multiple reopenings
- How to create an Email Subscription input in WordPress?
- WordPress ajax filter returning all posts when it should be filtering by category
- Move Jquery.js to Footer
- getting the values of hidden inputs to use them in a php mysql query
- Detect what link user clicks and Redirect to a specific page for logged in users only
- Remove specific javascript when viewing page in Customizer?
- Input field duplicates on form submit by jQuery
- Styling a specific post after hovering over it
- How to echo a PHP code into WooCommerce variation product?
- How can i get the same ajax result using WP REST API instead of admin-ajax?
- How to call a function from functions.php with ajax?
- Custom theme admin-ajax.php 400 (Bad Request)
- Remove item from post_meta array via AJAX
- WordPress load javascript file if something… (after the page is loaded)
- include javascript Multiple files in wordpress through script.js
- Let user select the number of posts shown per page jquery error
- number of posts with “Load More”
- Add Admin Option w/ Anonymous Function
- add menu page in loop menu order
- How to call WordPress PHP file using external js file
- PHP array to jQuery array ” Uncaught SyntaxError: Unexpected token < "
- Creating Log-In Page for backend server
- defined (‘ABSPATH’) false after AJAX post to other PHP-file
- Bootstrap Carousel Indicators Won’t Cycle On Custom WordPress Theme
- Is there a reason why my wordpress PHP page isn’t loading into my PHP template
- ACF + WP + Slick Slider Repeater Slide Group PHP not Displaying [closed]
- I was wondering if it’s possible to implement card.js on WordPress
- Find the method which AJAX GET calls
- AJAX Filter WHILE Loop not working WordPress
- Default Image not showing up in Customizer for WP_Customize_Cropped_Image_Control
- Calling header from JavaScript file
- How to create a radio button to alt between settings in wp_options table
- Ajax not updating to database
- WordPress 404 when using AJAX to call php function
- wordpress ajax pagination
- WordPress AJAX load post metadata in modal
- how use php query in AJAX jquery
- jQuery doesn’t work in my php snippet
- Issue with search form admin panel after PHP migration
- Using Custom Javascript and pHp to send email to myself when a user clicks on an input button but only works on Chrome, IE, and Micorosft Edge
- Ajax Load more CPT via shortcode
- Form not working as it should in WordPress, but in a normal HTML site it does
- Why I’m Not Having Access to “$_POST” Data Outside My AJAX Callback?
- Add a downloaded JS file to WordPress
- Submitting my form to the database and then redirecting to payment site
- Slider from different widgets
- Querying posts based off a jquery datepicker
- AJAX Not Working With WordPress Database properly
- How to call javascript function (jquery) in a shortcode?
- Extend the WP_Customize_Image_Control class to change its non-frame $button_labels
- A Customizer checkbox control that sets the setting to “” or to “blank” and show() or hide() a color control
- WP Admin Bar – Get current theme name as custom menu title
- Pass the updated value of aid from form using ajax
- admin menu naming
- ajax form with multiple submit buttons and values
- How to call a certain object/menubar in a PHP file
- How to run ajax in WordPress Post?
- 500 (Internal Server Error) of external php file
- Adding unique marketing messages between certain products whilst using isotope/Infinite Scroll
- Pass php to database in JQuery: With AJAX?
- Use jQuery and AJAX to get HTML
- How can I correctly POST to a WordPress page?
- No Authors for custom post type
- Adding instant search to wordpress page
- Fatal error: Call to a member function get_results() on a non-object in on line 26
- Add php function into .js file (for tinyMCE button)
- Why this plugin is not working?
- Combining fancybox with multiple thumbnail plugin
- Dynamic Gallery
- Trying to fix multiple category drop down
- What is the best way to get the first few post from WordPress in different divs using a loop?
- Missing items on page
- Adding javascript files to WordPress and jQuery version
- I am trying to call external database recieving error
- Highlight posts currently being edited on multiple editor site?
- How to change links in the 3 main categories, on widget category, to a javascript function call
- jQuery vs. $ – Creating jQuery scripts in JavaScript in WordPress using External Libraries
- reorder a WP_Query, using a dropdown
- best way to communicate between php and jquery/javascript
- Loading a post’s content, into a div outside the loop, when it’s title is selected in a list
- Cannot get custom javascript to execute on page
- Fatal error: Uncaught Error: Call to undefined function wp_nav_menu()
- Edit Image/Image Details – Replace button missing
- ajax form function error
- Add specific phrase after every product title including the discounted price? [closed]
- why my “recepie” category is not taken into account in my request
- Cannot modify header information – headers already sent
- AJAX: WordPress filters inside $html do not work as intended