have you looked at $_SERVER
$real_address = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
echo $real_address;
This code grabs your url with it’s parameters and saves it to the $real_address
variable
Also have a look at this link here
Related Posts:
- Woocommerce different URL for every table placed in the restaurant
- Author Specific URL’s in WordPress
- custom taxonomy and custom post type url conflict
- Rewrite url without flushing the database?
- Best way to hook a custom url?
- How to rewrite URL and get the values?
- Change language on website and change currency with url query
- Custom Rewrite Rule Removing Query String
- WordPress drop domain alias
- Creating custom URL for async content
- URL RewriteRule doesn’t work when using WP Database Participants in my WordPress website
- How To Rewrite WordPress Pages URL Only?
- How can I process all requests for a given directory in a URL with my plugin?
- Remove base from the custom post type URL [duplicate]
- WP Job Manger change jobs url (NOT slug)
- Preserve custom URL parameter on more pages
- Add rewrite rule to permalink structure
- Which method is best to enqueue scripts
- How to make WordPress use protocol indepentent upload files?
- Passing & Reading URL Parameters with URL re-writing
- Add_rewrite_rule doesn’t add custom url in plugin
- Add query string to plugin URL
- Is revealing just the AUTH_KEY a security issue?
- Nested CPT URLs + Posts 2 Posts
- How can I rewrite a plugin generated URL?
- flush_rewrite_rules() not working on plugin activation
- WordPress custom URL Rewrites redirecting not masking
- Find the URL of the current plugin directory
- Custom page slug without creating a WP page
- WordPress URL redirect
- Checking that the Rewrite API is available
- Why slash is removed after domain?
- What is an arbitrary URL?
- Detect permalinks when passing querystring in REST API requests
- how to change the verification url of pie register plugin of wordpress?
- Plugin appends ugly URL string to index
- How to make a proper custom post type link
- Why WordPress plugin url ajax doesn’t work?
- Added slug after URL permalink last slash returns different content
- Is there a hook to Intercept al urls from a webpage and redirect to a page
- WordPress shows error related to allow_url_fopen
- Subdomains with almost the same content
- change content based on url per plugin
- How to Create a Custom Slug for Tags and Categories with a prefix or suffix?
- URL rewrite of independent plugin?
- Plugin generated taxonomies’ permalinks with custom placeholders
- Locked out of admin panel after installing HC Custom WP-Admin URL [closed]
- Edit Permalink Structure For Custom Post Type or Modify .htaccess?
- WordPress plugin url for form submit
- Creating author Specific page URL
- correctness of URL
- URL rewrite with external JSON query
- How do I convert my WordPress website to be domain agnostic?
- Need to change link URL embedded in multiple posts to new link URL
- How to pass a query string to another page on the same site?
- how to replace hostnames on certain external links?
- WordPress rewrite rules not working
- Scrape a webpage for image and add it to post
- Change url of posts with keywords
- How to force load a page in plugin?
- Replace video url with video player
- How to embed a new string in url?
- i want to rewrite my custom plugin url
- rewrite file to wordpress
- Offer Download Links for Product Images
- TranslatePress | secondary language category/sub-category not working correctly “`/%category%/%postname%/“`
- Redirect unloggedin users
- Hidden permalink different from displayed permalink
- Having a problem with rewrite_rules and rewrite_tags – url not rewriting properly and query var missing
- How to create a folder in wordpress that will contain pages?
- WordPress rewrite rule depend on meta values not ids
- one url for all pages
- how to include my homepage and scc in to a plugin
- How to allow URL with filename & extension in wordpress?
- How To Use htaccess to Rewrite Link Structure for a Page that is Generated Programatcially
- How to give .html extension to just one post not all post
- URL Rewrite 404
- catch urls with specific pattern and show specific content for them by plugin
- I am trying to rewrite urls in WordPress, but its not working
- Automatic set a featured image from the first image’s url (or tag) in the article
- WordPress website giving 404
- Keeping original URL
- How to link file or image from wordpress plugin dir to theme by using themes function.php, is it possible?
- Change default url to plugin custom post type
- Custom pages with plugin
- Images not showing on homepage after migration [duplicate]
- custom url with custom post
- How to remove post redirects
- Apache rewrite rules and wordpress problem
- Unwanted Links and Spam WordPress Pages and Posts
- Display Plugin information on specific url
- Why links are not linked if edited comment?
- Plugin with custom domain
- map urls to plugins
- HTML link within my plugin settings page
- Why plugin’s icon for the menu not found?
- How can I output completely custom content with plugin while still having header, footer, sidebar etc [closed]
- Please Check this ‘.htaccess’ File
- How to rewrite URL using .htaccess in WordPress Plugin
- How to change all the urls of the WordPress site?