Make a page and assign a custom page template that includes a form which references itself in the action — #.
Then just check the $_REQUEST for the information sent by the form.
There are several functions in the HTTP API that will help you send a request to your API and handle the request.
It doesn’t look like you need anything from the REST API on your site, so don’t worry about that.
If you want to go the AJAX route and not leave the page, there are several examples on how to use admin-ajax.php or admin-post.php.
Related Posts:
- Bypass wp_safe_remote_get()?
- How do I get the avatar URL instead of an HTML IMG tag when using get_avatar?
- Programmatically get images by URL and save in uploads folder
- Function to get URL of original uploaded image – full size
- How to reference a theme image in a stylesheet?
- Mixed content warnings after changing site adress from HTTP to HTTPS
- Preview Image Path in Admin Section
- Why would image paths in wordpress suddenly change?
- Remove the http protocol from images
- How do i reference the theme path in pages for images?
- @wordpress/create-block image url in css
- WordPress url image redirect to the homepage
- Broken urls with http site and https wp-admin
- A way to change image urls in post to cdn image url?
- How to change image url?
- Update image links in database
- Shortcode for a link and thumbnail
- media_sideload_image with rewritten urls?
- How to add an image to a custom url?
- images not showing after transfer
- Is there any way to Integrate WordPress with Imgur for Image Hosting
- Replacing the content of an image attachment using API
- Change media URL (images)
- How to redirect homepage to actual URL?
- Clicks registering on Preview DNS site
- Is it possible to enable the ‘Link To’ field under ‘Attachment Display Settings’ for a Featured Image?
- Using a .pdf file as a page in wordpress
- How to get image URL from media_sideload_image?
- Exclude image url from search query
- Redirect Image Url to a page via htaccess
- How to pass on a value as parameter via url to another page
- How to replace post image url before posting using api?
- Hide or mask the url to an image
- Glitched page redirects to image
- i want to change URL of WordPress image or rewrite in runtime
- How to show a full page when someone links directly to an image on my site
- List sub pages with custom field content converting image ID to URL
- Change the image for a certain URL
- Setting name of attachment URL
- Search and replace image urls in posts
- Protocol relative url not pulling up images on IE, FF, and OPERA
- Broken image URL
- How do I mitigate the forward slash problem for URLs of images after a WP migration?
- Images in sub-pages fail to load
- get_post_custom: get image URL instead of image ID
- Are image addresses security relevant?
- Remote Image (from URL) as Media Library element
- WPALLIMPORT Exporting images from repeater field [closed]
- Uploading media to wordpress API with C# HttpClient
- All WordPress Website Images Broken
- get the attachement url for the medium sized image
- Each custom image size in custom upload directory?
- How to automatically add rounded corners to thumbnails?
- Is there a simple way to just insert a link to an image (without inserting an image)?
- Watermarking Images with WordPress with WP_Image_Editor
- Get attachment/image info in JS
- Auto-modifying original [full size] images
- How to limit number of images being printer out in “Set Featured Image” pop up?
- Replace Woocommerce Images
- Black and White thumbnails
- Crop image to horizontal or vertical by code based on image size
- Pasting images removes class attribute
- How can I make all gallery images to open in a new window?
- Open the attachment details modal
- Crop image without scaling or resizing with add_image_size()
- Download button for Featured Image in every post – automatically
- Display content according to current URL
- Can’t access ‘Store uploads in this folder’
- Is there a way to pull the first featured image in a loop and not all other featured images?
- How to Display Featured Image Title and ALT Attribute
- Is it possible to recover featured images after WordPress export/import
- how to stop generating different image sizes from parser
- Add attribute to caption shortcode from custom attachment field
- Get an image’s alt text in a shortcode using the image URL
- Add Small Image Size to Media Settings
- Image resize depending on orientation?
- Character Limit w/ Excerpt removes Images Why?
- Imported thumbnails have incorrect URL
- Link to large image version instead of original?
- Adding new size for Media screen in functions.php not working
- After installing ssl certificate images won’t show
- Random Size on Featured Image
- Some images not found 404 in localhost
- Faster way to put images into a blog post by using Add Media dialog
- WordPress adds extra width to post images container boxes
- Handling image uploads without thickbox
- Loose images in uploads folder
- Retrieve an array of image URLs that belong to a gallery
- Help With Custom Image and Text Widget
- Convert uploaded GIF to non animated image automatically
- Is it possible to split Default WP Media directory to multiple Folder/Subdomain?
- Using SRCSET with Images and Featured Images
- How to make a gallery with dynamic images from URLs?
- Images uploaded to the media library has strange colors. However, in the edit screen the color is ok
- t5-fresh-editor-stylesheets.php breaks image placement in WP Beta 3 editor
- Find and Use an image’s caption
- My subdirectory sites images (except webP) are throwing to 404 page even they are exist
- changing option for all posts
- Disable image compression for WebP
- Image editing no longer works after moving to a new server