I’m not positive I understand the question, but if you’re just trying to get the site URL, you can use the get_site_url()
WP function. So, like this:
$siteURL = get_site_url();
header("=Location: $siteURL" . "/myoriginalformpage/?success=", $success);
And you can change the parameters of get_site_url()
to specify the path and to display ‘https’ or ‘http’.
But if you just need the current site’s url, use get_site_url();
Related Posts:
- Removing all my hardcoded URLs with get_site_url()
- Fatal error: Call to undefined function plugin_dir_path()
- How do I get the author’s page url from their ID?
- Why is PHP Cookie via plugin only set when logged in as Admin and not regular users? and other questions
- Disable External Pingacks on WordPress Posts and Only Allow ‘Self Pings’
- Concatenate site_url and string doesn’t work
- Custom plugin issue when trying to use the shortcode twice on a page [closed]
- Using wp_get_image_editor in a standalone script
- New Plugin Review
- Making Quote Plugin more efficient
- How to access function from outside of a class within this class in WP plugin?
- PHP can I add line numbers to file_get_contents()
- Remove query string specific key value
- Adding Default Settings to Theme My Login plugin
- Swapping wp_dropdown_categories function with wp_category_checklist
- Adding subdomain to home_url for “add_menu_page”
- How to access global variable $menu inside a class function
- How can I remove a function that has been added to wordpress with add_filter?
- what is the best practice to add new field to an api route
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- How to use $_GET function WordPress backend
- How to call plugin function per site in a multisite?
- Extend PHP regex to cover “srcset” and “style” attributes
- Scrape external webpage for first image and add it to new post
- WordPress Custom field Colors
- Need help enqueueing webfonts
- Redirect to another page using contact form 7? [closed]
- How to obtain the current website URL in my theme?
- What exactly do this function declared into functions.php file of a WP theme?
- Get the URL of the page from which an ajax request has been launched within ajax callback
- How to use html inside a functions.php code?
- Plugin Generate Unexpected output during activation
- Using data sent via AJAX in multiple functions on a WP plugin
- Is it possible to define variables in a wordpress shortcode, and then call the shortcode using a specific variable?
- Custom meta box values are not getting saved for my custom post type
- how to save checkbox data for custom setting?
- Need to Modify a WordPress Shortcode with another wordpress shortcode
- Call to undefined function error in plugin
- Creating customized php files in theme folder
- Execute Jquery when a specific page in my plugin is loading
- How to add PHP pagination to wordpress
- send popup after wp_redirect()
- Workaround for og:image unsupported webp image type, Yoast SEO?
- How to define a rule in functions.php that ONLY disables the default wp functionality that undesirably changes ‘&’ to ‘#038;’?
- Using ACF Relationship field to set post type to draft or published status
- How to change basename url for wp-admin?
- How to Send Pingbacks for all Posts in WordPress?
- Reliable way to add nonce to HTTP Header in WordPress?
- Only the first image uploads
- Add Pre-Defined Value to Click Counter in WordPress
- Illegal string offset checkbox
- ssl redirect function is not working
- Custom plugin: how do I call a PHP file if settings option is set to true?
- How can i avoid duplicate same post in wp?
- Display a custom name when the user has no name settle in his account
- In a foreach loop, how can I add a meta value if it doesn’t exist?
- How to override theme’s public static function inside of a trait?
- Enqueue sripts and styles only if function is called
- post_exists stops working in a scheduled event
- How does one make a URL return dynamic JSON with custom Content Type?
- Taxonomy Child Term, Counter is staying on 0
- Need to Echo A Url path to show on a wordpress page
- PHP get_category() function redeclared
- How to Request a User to Register on Landing at a Site, Then Automatically Delete the Users Password on Logout?
- Private messaging – Getting and displaying the avatar/url of a message recipient
- site_url() returns with additional backslashes
- Permission error on plugin save
- Trouble using wordpress functions in a pop-up modal form
- Issues separating my Plugin pages into different files
- Whats wrong with my code? Need To add String to shortcode? [closed]
- how can I make content from a plugin hidden when user is logged in? [duplicate]
- display php code in header using wp_head()
- How do I change the Go To Categories link in the term_updated_messages
- WP Custom tables query
- How to extract URLs from wordpress taxonomies
- Create a custom plugin with dynamic child pages listing database records
- How do I list the_tags() into HTML data-attribute
- WordPress if (is_page) translation on certain page
- How to restrict wp generate attachment metadata() to certain intermediate image sizes
- get post based on category chosen in drop down – The ajax method
- different id for same element visual composer [closed]
- How to remove ?p= from wordpress short links
- How to make function appear in sentence?
- Save html content of a widget textarea
- How to define a variable already defined in a plugin function?
- woocommerce specific quantities for product
- Custom query vars filters problem with pagination
- How to override a plugins script
- Restrict post to current user in postmeta
- posts_per_page displays only 2 posts instead of 4 posts
- Plugin won’t output characters with diacritics properly
- Get parent category name when only child category is applied to a product
- ACF relationship on user profile page used for allowed access
- Adding product permalink on admin order page throwing error
- Before & After Content – After Content directly below Before Content when using require_once
- Need help with format of nested array in MySQL
- How to add delete, approve, spam Links to Comments
- use system script advertising in wordpress multisite
- Help with my first Metabox helper class
- ISOTOPE – Missing/Invalid Arguement Get Terms