admin管理员组

文章数量:1430506

I'm trying to create a plugin for Wordpress and in the plugin, I am using the Get method to store a string which I will use to call an API. I created a custom page and the url is: http://localhost/wordpress/explorer/. When using the get method in a contact form, the URL becomes http://localhost/wordpress/explorer/?value=inputvalue where input value is the value I inserted into the form. To make the URL look nicer, I want to removed the question mark before inputvalue and make the url something like this http://localhost/wordpress/explorer/value/inputvalue. How can I do that?

I don't want to use the post method since I want the input value to be in the URL.

本文标签: pluginsHow do you remove question mark in URL in get method