See the top answer on this Stackoverflow question. Basically you need to use:
decodeURI((RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1]);
Related Posts:
- How to add a custom metabox to the Menu Management admin screen?
- How can I enable Google Analytics on a file download link?
- How to make ajax call in wordpress in right way?
- Add column to pages table
- jquery UI in wordpress admin
- Registering jQuery kills admin functions
- Add column to pages table
- Admin top level menu, pointing to an external url
- I am not able to enable jQuery in theme settings
- Admin panel: Javascript not loading properly. Cannot edit pages/posts [closed]
- adding the category to the admin column for a custom post type?
- Change page title in admin area
- How to filter by post-format in admin?
- sortable custom column in media library
- how do I force a single column layout in screen layout
- Make fonts.com font work in TinyMCE (iframe referrer issue)
- Sortable admin columns, when data isn’t coming from post_meta
- wp_list_table search box does not show
- How to remove the site health dashboard widget?
- Securing wp-admin folder – Purpose? Importance?
- How to Display Post Excerpts in Admin by Default?
- What is the capability that permits access to WP-Admin?
- WordPress in sub directory wp-admin problem
- Admin account only shows Profile and Dashboard with no activity
- Opening specific posts on WP takes lot of time and freezes the editor
- Adding body class to login page?
- Edit a WordPress site without the username and password?
- WordPress admin menu gap when debug mode is enabled?
- Call to undefined function insert_with_markers
- How can I remove the new stats message? [closed]
- Add class to menu ul with active child
- jQuery cookie not working properly in wordpress
- How to inhibit dashboard and profile management access to normal users?
- Why can’t I exclude private posts from this query?
- Cannot Access Admin Area After Migration
- Modify wp-admin page header ‘viewport’ meta data
- The uploaded file exceeds!
- Remove metabox from WordPress menu editor page?
- Having troubles connecting to WordPress login page using Mamp
- WP Admin/ WP Login Redirect to themselves
- Unable to log in to localhost wp-admin page on XAMPP server
- Missing ‘Move to Trash’ option from bulk select box
- Where can I find admin-header.php file online?
- class-wp-hook.php on line 288
- Trying to get custom js files in my admin header
- How to disable categories/most used in ‘add new post’?
- Is it possible to create two different wp-admins for a wp website
- Am I able to change the name of /wp-admin/options-general.php?
- how to customize the default #adminmenu in wp-admin
- blocking the admin section (but still using admin-ajax.php)
- WP Admin messed up
- wp-login not found – All usual solutions not working
- Why when I try to access to this old WordPress site it is opened the installation page?
- How do I change the hover (focus) color of admin bar from frontend?
- What do I need for testing a single script in admin
- Wp-Admin extremely slow!
- Run two wordpress on the same domain
- nothing comes up when i go to my website.com/wp-admin? Which files should I look for?
- WordPress blog clone.. wp-admin issue
- How to take the help button and link off the dashboard
- How do I fix wp-admin error when exporting reusable blocks?
- issue with wordpress [wp-admin] redirects, when using kubernetes ingress hosting two wordpress websites using path
- WordPress AJAX Request returns 400
- Toggle between block ‘edit content’ and ‘select’ not properly working in WordPress Admin
- WordPress Admin extremely slow when other admin logged in
- Can’t acces login on new site
- WordPress Admin Panel Left Sidebar No showing on Post create page
- WordPress Dashboard add user password not working, etc
- How to remove the color picker code from users-edit.php
- wp-config.php not affecting my site
- How to prevent spams from admin-ajax.php file?
- After changing Site http to https, can’t access wp login page with a digitalocean hosting
- Strange wp-admin problem for all users/adminstrators except the original one?
- adding existing menu page on new customer user role
- stop customize.php redirect to login page if admin is not logged in
- Random authentication failures on a load balanced WP setup
- Can I get programmatic access to wp-admin?
- how to configure this type of menu
- remove_query_arg on options.php
- wp.svgPainter cannot init error, causing issues with admin panel
- mysql_escape_string PROBLEM
- Organising and display thousands of photos in media library
- Custom comment action
- Checkbox not showing as checked on UserProfile (even with checked=”checked”)
- Get URL of current featured image with JS in edit post view
- get_current_screen – ‘Trying to get property of non-object’ error
- Block tools menu in wp-admin?
- is_admin() triggers error
- WordPress Admin: open popup window on a custom button
- No HTML/Visual mode option in admin panel (New Post)
- Removing Author name
- not able to add thumbnail custom field in dropdown
- WordPress blog fails to open
- My website does not load since two days!
- jQuery datepicker not showing on admin menu
- Redirect users based on their roles, is_admin()
- insert an admin table inside another admin page
- /wp-admin/ – this link showing me “Index of /wp-admin”/ instead of dashboard
- What methods are you using to transfer individual WP site components from one site to another?
- how to Hide all products except the General Manager role in the WordPress admin panel?