This is what you’re looking for: http://codex.wordpress.org/Plugin_API/Action_Reference/init
Example from Codex:
add_action('init', 'process_post');
function process_post(){
if(isset($_POST['unique_hidden_field'])) {
// process $_POST data here
}
}
Related Posts:
- Adding a single text input field to a custom Dashboard widget
- Database size Widget
- Give Editor Access To Sidebar
- Enabling jquery when dragging available widget to sidebar area
- Prevent widgets removal
- Complex widget form UI – examples and best practices
- How to Validate Widget Input
- How to listen to color changes on the color picker?
- Role that can edit only widgets, not other theme options
- How can I delete all inactive widgets?
- Reorder dashboard widgets
- Ban certain widgets from certain sidebars
- Using tabs in admin widgets [closed]
- Widget queries even when there are no sidebars?
- Multiple users editting widgets
- dynamic_sidebar() returns false in admin section
- Widgets not expanding on wordpress 3.3 widget dashbord
- How can I use AJAX to save/update a widget form?
- Is there an official email form widget or block?
- How to get “Widget Logic” plugin’s input value in a custom widget code (to display on the Widget admin page)
- A form in a custom widget
- Form link throwing website to main language
- How do I pass the id of my widget to javascript in the form function?
- Redirect to page after a widget form submit
- Grabbing how Many Posts by Month for a Dashboard Widget
- How to change color of registered widget areas in admin?
- Proper approach to moving complete site from one domain to another AND preserve widgets
- Create Dashboard Widget with form to keep team’s record
- How to change widget’s form color in admin?
- accessing wordpress serialized data outside wp
- Editing Help Section
- Allow users to give a dashboard widget a custom name using ACF
- How to customize WordPress dashboard for different users?
- Reposition the widget sidebar in Appearance->Widgets
- How to update the options table for a widget
- Handling dozens of sidebars
- Widget Areas Still Appearing in WP ADMIN When They Shouldn’t
- Displaying database table in backend of wordpress
- Widget front-end fails to echo as expected from checkbox
- Creating an custom admin page for editing widgets
- Unable to add options on dashboard widget ?
- How to add the “page” post type to Recent Activity widget displayed in admin?
- How can I remove WordPress element IDs and Class names in the HTML?
- How to edit custom table data in frontend
- Remove widgets on mobile front page without affecting desktop
- Dynamic Bootstrap Carousel ID per widget on same page
- How to get individual values from custom widget?
- How would you return a value from an individual field in a custom widget?
- Need to delete the sidebar widget area and have the page a full page rather than just have a blank widget area
- How to decorate WP_Widget_Text?
- How do I find out which
- Confuse between forms and tables
- User input to database
- Widget not appearing in customizer
- After adding widget the style is messing up
- How do I get my custom widget to show on live site?
- Mobile view: how to remove right/left margin from the specific widgets?
- How to create a widget with a populated dropdown?
- Unable to see Widget Submenu under Appearance with Class Based WP_Widget
- Widget display nothing
- How can I add a widget area to the top of the Dashboard?
- Tabs widget from Elementor is not showing the content in it to users. But at admin side it is working fine
- How to update a widget data?
- Query a database based on form input then output to another page [closed]
- How can I have sidebar widgets on Twenty Seventeen theme on all pages?
- Creating a custom form with ability to query and submit to SQL
- why the code html apear in this widget in footer
- Change user_nickname for author page link
- Widgets are not displaying in my theme
- An archive widget, coming from nowhere on my posts and pages
- Insert variables into wpdb in custom post template
- how to make video autoplay in widget
- Widget title showing below widget
- Elementor or WordPress randomly adds the word “array” to my custom widget
- Widget form not displaying for media widgets in WordPress
- Getting values from form and saving in database but spaces are inserted instead of form values
- Display Login user name in Thim:login Popup widget
- Searching for a one page overview widget
- Sorting Tag Cloud by Popularity
- custom widget not saved to sidebar
- When editing in block editor, the post/article gets under the floating widgets
- Editing the term_order field
- Need to remove a piece of copy that appears to be in a sidebar but doesn’t show up
- How to edit wordpress widgets?
- Help posting values to DB on submit using $wpdb->query
- WP renders HTML wrong when adding widgets
- Collapsible widgets [closed]
- Recently changed domain name. Home page widgets are now not in the customize menu yet still being on the page
- Updating the database after parsing CSV document
- Button click counter for login user
- Can view Social Media buttons only in the private mode – why?
- Siderbar implementation with collapsible bootstrap cards
- Loop through Widgets in sidebar using widget array number?
- My theme didn’t appear sidebar area
- custom search query database in child theme
- Adding pagination to my theme [closed]
- Widget settings disappear after refresh
- Use admin-post to submit form data to external database
- How do I enable the admin form for a custom widget that is called in a sidebar template, not to widget area?
- Insert data from form to database