By default no action url will mean that the form will be sent to the URL the page was loaded from. Once it is done, the code evaluating the shortcode is checking in the form was submitted and process it.
This is not not a great way to write a from processing code, as the evaluation of shortcodes happens too late for doing something like redirect on success.
Leaving the action empty is not horrible by itself but you should try to be as explicit as possible whenever you can.
Related Posts:
- Let readers suggest edits from the frontend
- Datepicker not supporting timepicker
- Submit custom form from post content and execute in plugin
- Submit Form data to another page via Ajax (WordPress Way)
- How to append new form elements in “Add New” form of Users in WordPress admin panel?
- Ajax call to php function doesn’t work PHP code
- What action or filter can I use to change all the html returned from server for a page?
- What action/hook do I need to register to have my plugin handle front-end editing?
- Passing a parameter to filter and action functions
- Get a list of all registered actions
- How can I edit post data before it is saved?
- How can I see all the actions attached to an “add_action” hook?
- Contact form 7 select box different value-text than content-text in option [closed]
- Where is the best place to use add_filter
- Deactivate plugin for a specific user group
- Auto Load Plugin Hooks inside Must Use Plugin
- How to only hook on Single.php after content?
- How to add “Stick this post to the front page” to front end?
- Removing an action from an external plugin class
- When can you get current page ID and initialize hooks right after?
- Simple form that saves to database
- How can I log a user out of WordPress before the page loads?
- What is the ‘admin_action_’ . $_REQUEST[‘action’] hook used for?
- Handling jQuery Component Collision
- Autogenerate wordpress shortcodes using array?
- WordPress admin notice in plugin function
- Using the ‘draft_to_publish’ hook (post status transition)
- Get selected values from checkboxes and radio buttons via Gravity Forms gform_after_submission hook [closed]
- Enqueue style inside shortcode but its loaded at the bottom of page (before footer scripts)
- How to restrict Front-End Editor on a page?
- How can I limit functionality in one version of a plugin?
- Is there a global action for when a plugin is uninstalled?
- Where should my plugin POST to?
- How to notify users of blog updates a la Admin Plugin Update notifications?
- Plugin development: how to create a form and get custom data?
- Shortcode display outside the div
- Which hook callback has priority if both plugin and theme use the same hook?
- Using rewrite rule to access a view of a plugin from home page
- Good tools for locating hooks in a wordpress page/admin interface/blog post?
- Multi step form, custom plugin
- Use external link in the add sub menu
- shortcode doesn’t work
- How to remove action from plugin?
- Contact Form 7 plugin refreshing page on submit [closed]
- Template plugin for blog posts? [closed]
- delay function on publish?
- Very stubborn wp_register_script / add_action vs remove
- How to prepend to the_title for admin-side plugin’s use
- Plugin form unable to process
- Restrict backend but allow to use post.php?action=delete&post=POSTID from front-end
- Trying to add admin file upload form plugin
- How can I enqueue a style only when a particular widget is active?
- Add custom buttons with custom actions in Edit Post screen in WordPress?
- How to disable autocomplete for inputs in contact form 7? [closed]
- do_action and hook methods
- Can a plugin add to header/footer/body content?
- Is it possible to add an action to the currently running action?
- Is there an action that is called when a post is restored from the trash?
- How to filter content post only on save
- Filter or action hook to insert content on admin pages before tag
- Is it possible to remove this action? (as it’s added just before it’s called)
- WordPress Custom Application form
- When is it useful to use wp_verify_nonce
- Action on post publish
- How to add inline css/js inside a shortcode
- WordPress Plugin Boilerplate – add_action hook in static “activate” function
- add function to saving change on Options Pages
- How to call bind function in wordpress actions or hooks
- Is there any good tutorial to write custom login, registration and password recovery forms? [closed]
- How to prevent action in ajax request, when in admin side?
- What is the purpose of $merged_filters?
- template_redirect not being called when using ajax
- Frontend editing, Frontend user dashboard
- How could I execute my plugin just in frontend (not in backend)
- WordPress plugin form not saving data
- Admin page: form with enctype=”multipart/form-data” does not transfer its data
- jQuery Plugin to use WordPress functions in AJAX request
- Handling jQuery Component Collision
- add action wp_head not working
- Can I use a method from an existing plugin as an action hook?
- Plugin custom Action Hook not working
- What are the benefit in adding hook in the init() hook?
- add_action in functions.php, do_action in plugin?
- Detect when any plugin is activated or deactivated
- add action for displaying posts using a shortcode
- ‘wp_login’ action hook not working with wp-login.php file
- Where to hook my plugin’s action
- Add form fields dynamically on button click
- Overwrite or Replace code in WP_Footer
- How to trigger $_GET request within admin plugin page?
- Retrieving a Value from a wp-database
- Custom CSS for plugin form
- Form doesn’t submit on second submit call
- WP plugins for building a database?
- Hook into and send mail using WP Mail SMTP type plugin from HTML static front page?
- How to Use Parameters with a Do_Action Function Within PHP Tags
- Custom form action to handle data inside a plugin
- How do action and filter hooks understand where to look for the core function that we hooked our function to them
- WordPress filter that hook after each action/filter hook
- Preview featured image using frontend post plugin