I think your action URL is wrong. Did you try with
<?php echo plugins_url( 'listrak-newsletter-api.php', __FILE__ ); ?>
like this way:
echo '<form action="' . plugins_url( 'listrak-newsletter-api.php', __FILE__ ) . '" method="post">';
in your code?
Anyway I still recommend you to use WP AJAX to do this. Read here for more information.
Related Posts:
- Simple form that saves to database
- Multi step form, custom plugin
- shortcode doesn’t work
- How to trigger $_GET request within admin plugin page?
- Custom form action to handle data inside a plugin
- Using a custom plugin to capture input data via Ajax and PHP
- WordPress WPforms customization
- Take input from form and pass it to function using a wp-plugin
- How to insert HTML/JavaScript form into WordPress page? [closed]
- WP Plugins – Use includes to display page content
- coding a WordPress AJAX Form using PHP to check if User is Logged Out and Show error
- File Uploader – Upload without adding to Media Library
- How to redirect to a page after the form is submitted
- Echo out element to another page.
- Submitting form to PHP
- Why is my form going to frontend on html form submission present on the php files inside my custom plugin?
- Ajax call to php function doesn’t work PHP code
- submit form data to wordpress existing database table using my plugin
- get/show Last ID
- I created a custom form in HTML/CSS and now I need it to submit … should I create custom PHP or is there a plugin I can use?
- Saving custom form fields
- How do I convince this button to do something when it is clicked?
- Undefined variable _POST
- How to prevent page load on form submission
- how to show selected options drop down menu values in attributes field in after saving post.php
- How to build an API as a plugin
- category_name not working (not showing up in sql query debug)
- How can I make my custom shortcode work in a Custom HTML Widget?
- Update Multiple Post Meta for the Same Post In One call?
- WordPress Hook that will run when media file deleted
- How do I configure WordPress to talk to a Microsoft SQL Server database?
- Post source link plugin – small modification
- Which hook callback has priority if both plugin and theme use the same hook?
- How can I make the “Preview Post” button save and preview in the same window?
- WordPress Custom Application form
- Admin page: form with enctype=”multipart/form-data” does not transfer its data
- Cannot run the code after I activate the plugin
- Displaying admin notice dynamically
- Unable to activate wordpress importer after installing it
- Get total number of comment of the posts written by an author
- WordPress Ajax Callback
- printf – problem to understand code
- add_query_arg not working
- Form isn’t inserting data into database with ajax plugin
- How would I go about creating a user ranked post popularity page?
- WordPress: PHP code rendering in the wrong place
- New to wordpress, Question about editing PHP
- How to edit content before post update
- Ability to automatically redirect a URL
- Passing Page ID used in Meta Box Creation to JavaScript
- How to allow user to select User ID in Formidable Pro form? [closed]
- Activate my plugins via FTP
- Detailed form plugin, with ability to export to excel etc. OR edit PDF live? [closed]
- How to add apply_filter for a class property in plugin
- A server-side hook failed when committing plugin code to SVN
- Content-Security-Policy Headers are there and showing the correct settings, but still getting a refused connection
- Need to replace Currency Shortforms
- Api external with wordpress
- How can ι create my own (custom) WordPress table/list?
- How to delete all categories programatically?
- Using meta_query in a WP_Query not working for numbers properly
- Building a plugin into a theme
- Trying to include files in plugin isn’t working
- Plugin for visitors to edit content without logging in? [closed]
- WordPress Forms Advance Conditional Logic
- implement custom roles in custom plugin
- How to get current cart values using WC_Shortcodes?
- How to authorize viewing and clicking a function only logged users?
- WordPress is redirecting me to homepage
- How can we get this dynamically as this folder may not be by the same name always → wp-admin
- Cant create table on plugin activation
- How to arrange custom posts in the backend/admin by custom taxonomy
- How to ignore fields if empty?
- Why is my shortcode not working?
- Moving a few select DB tables to a new WP instance
- implement checkbox or toggle switch in plugin code
- Creating posts with acf_form() that has a relationship type field
- How to get the total count of Favorite/Favorited authors
- Admin login substantially slower on production server
- redirect to a custom page
- How to change text in a page by utilizing a custom user id?
- Adding link on title its in description but not in title see screenshots attached
- How can I insert a record into a custom table from my custom form in my custom admin page?
- WP_Filesystem usage within a block of code
- How to save information related to post in database?
- Save selectlist value (taxonomy) in wp:wp_set_object_terms
- Page doesn’t load
- Metabox Data not saving
- Xml output not places where i want
- Including a PHP file via a function that is part of a plugin?
- How to fix ‘Call to undefined function do_settings()’ error?
- Integrate Razorpay quick payments plugin with contact form7 plugin
- Build a Boat Form Plugin [closed]
- Translate text for empty product
- Passing an input variable through a switch statement
- Refresh server side rendered block in Gutenberg without changing attributes or its content
- I want create woocommerec match products columns
- WordPress Custom Page Blog Template Pagination Problem (Pagination Not Displaying)
- How to override plugin function in code snippets WordPress
- How to create a “Most Popular” & “Latest” TAB in WordPress