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
- Maintaining image color and quality when uploading using custom sizes
- Bulk edit wordpress images alt and title attributes
- Upload Image Not accessible
- Caption in Page adding unwanted 10px to width
- Adjust image caption within visal editor
- How to add a media with PHP
- Responsive Images – Add srcset attributes to custom Images Function
- Get original image from thumbnail URL
- Bulk image rotation
- Can I the caption shortcode to set caption to a data attribute, and with the image’s alignment intact?
- get the image of the post
- Pull Random Attachments With Pagination
- Upload media files to Amazon S3
- Out of memory error reporting
- How to get default image sizes attribute
- Remove the inline styling added in wp_get_attachment_image()
- Image not shown in the theme as it’s showing in HTML template [closed]
- Broken Images until Page Refresh
- Get image from parent category
- Images attached to posts from library link to 404 error page
- fetch images and videos
- Specific image size is being generated without being registered
- Should I not compress my jpeg files before uploading to avoid double compression?
- How to display title of attached image in post?
- Getting thumbnail of uploaded image
- Allow users to contribute images to a post
- Can’t add image to site via php
- Save Image in wp_options-Table
- Image upload error?
- Image not showing using a custom function and get_post_meta
- Random home page background images with caption text
- How to add “alt” attribute for image during upload at WP front-end?
- Excluding post thumbnail from the attachment.php when using wordpress gallery
- Featured Image Thumbnail size on Twenty Ten Archive Page
- Widget Style – Icon Type
- WordPress PHP custom function is causing 500 Internal Server Error Connection Timeout
- Post-processing of the image failed
- Get post thumbnail in specific size
- Text not wrapping properly around image in WordPress Visual Editor [closed]
- Broken images in media library
- Featured image appears in header
- Preventing the image-post problem from ahead (edit: without redirects)
- Embed image in post from external url
- Image thumbnail on single product issue | WooCommerce
- How can I hook and edit on the fly an image uploaded
- Anomaly with response coming from XML RPC Api get Post (integer out of range)
- Multiple gallery thumnbnails on one page
- Change image link in excerpt to point to post
- Putting the title attribute in image tag — Snapshot Theme from Woothemes
- Post migration – images do not display
- wp_handle_upload Image sizes