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?
- Adding iframe Content to Sidebar Widget
- Storing custom dashboard widget options in wordpress
- $post>ID displays wrong post ID
- Remove rss widget title link
- Copy widget settings from one blog to another
- Sidebar Widget Registration without a name, how is it assigned to new named sidebar widget?
- How to Make a Custom Dashboard Widget to Display Custom Notification from Admin?
- Add thumbnail to recent posts widget using filters
- Is there a way to allow only certain type of widgets in the sidebars?
- Shortcode in Text Widget not working
- Insert Widget option into mark-up with register_sidebar
- How do i display the built-in gallery inside a widget?
- Forcing the title of a text widget on to a new line in the admin area
- How can I add buttons to a custom column in the taxonomy table?
- Sidebar not show customizer!
- Customizing wordpress default widgets?
- different class (css) for sidebar widgets
- Adding widgets with Featured Image via the Customizer run hundreds of queries
- how to put functions inside of widgets
- Adding a Widget : what to put in plugin URL
- How to list all custom post types in a custom widget?
- How can I assign widgets from WP to appear in bbpress?
- get_option returns undesired blank instance of a widget
- escaping and sanitizing input for custom widget form fields
- Dynamic created widget id value of multi-instance in jQuery
- Adding Widgets to Draft Pages
- How to select multiple media files for a widget form?
- Edit Custom Post Type on Custom Admin Page instead Post Admin
- Apply code for all else first block
- dynamic sidebar in front page
- How to change “Call To +1800090098” in TopStore pro theme [closed]
- Using $wpdb | checking entered email against existing emails in db
- How to dynamically add the the input text field in widget?
- Header Sidebar Won’t Move Lower – Want to Align with Header Logo [closed]
- display widget checkbox selection on frontend
- Enabled checkbox by default in WordPress widgets
- Is there a way to use get_sidebar() when no widgets are activated?
- modifying title (in dashboard) for different widget instances
- How to translate Widget Description in constructor?
- Having problem creating local instance of wordpress site
- Creating a custom wordpress widget and stopping js from running twice(once in active widget once in widget selector)?
- How do I customize the positioning of WordPress widgets?
- Limit archive widget results
- How can I detemine the parameters needed by the_widget()?
- Fatal error: Uncaught Error: Class ‘WP_Widget’ not found
- Array showing all values of loop instead of specific value to post
- How can I have sidebar widgets on Twenty Seventeen theme on all pages?
- Loop through Widgets in sidebar using widget array number?
- Always show the widget title in a wordpress widget
- Is Post-Form Resubmission somehow prevented in WordPress 4.2.2?
- Custom php Widget keeps disappearing from the front end
- Display Posts by Views (Popular Posts Widget)
- Default WordPress widgets always appear
- Show editor widgets only on pages that use a specific template?
- Conditionally enable autoplay when using oEmbed in a custom widget
- Recent posts with different class name for each post and a scrollbar?
- Classic widgets with 5.9+?
- Widget block editor: Unable to collect checkbox values inside widget update() method