Still using jQuery, you can do this:
$('form').submit(function() {
// Use this to echo in JS console.
console.log( $(this).attr('action') );
// Use this to display a popup.
alert( $(this).attr('action') );
});
This will track every form being submitted.
Place this between <script>
tags or in a JS file. Like @dev said, this for debug purpose, don’t keep this in your code.
You may have to wait for Document to be ready, then you’d use :
// Needs jQuery too.
$(function() {
// Copy code here.
});
Related Posts:
- Passing a parameter to filter and action functions
- Get a list of all registered actions
- How can I see all the actions attached to an “add_action” hook?
- Where is the best place to use add_filter
- Deactivate plugin for a specific user group
- Removing an action from an external plugin class
- When can you get current page ID and initialize hooks right after?
- WordPress admin notice in plugin function
- Using the ‘draft_to_publish’ hook (post status transition)
- How can I limit functionality in one version of a plugin?
- Which hook callback has priority if both plugin and theme use the same hook?
- Use external link in the add sub menu
- delay function on publish?
- How to prepend to the_title for admin-side plugin’s use
- 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?
- Can a plugin add to header/footer/body content?
- 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 Plugin Boilerplate – add_action hook in static “activate” function
- How to call bind function in wordpress actions or hooks
- template_redirect not being called when using ajax
- Plugin custom Action Hook not working
- add_action in functions.php, do_action in plugin?
- add action for displaying posts using a shortcode
- ‘wp_login’ action hook not working with wp-login.php file
- How to Use Parameters with a Do_Action Function Within PHP Tags
- WordPress filter that hook after each action/filter hook
- How to stop or remove an action being called inside a function of an extended class
- Automatically add attributes to woocommerce product?
- Insert new user with form submit ‘init’ hook
- Calling plugin function inside custom plugin for onclick event
- How to check current user before all actions and filters?
- CampaignMonitor for WooCommerce – Move subscribe button [closed]
- Plugin developer automated documentation
- Custom plugin init action causing general slowness
- Is there a hook to Intercept al urls from a webpage and redirect to a page
- add_action in static class [closed]
- Inject HTML meta tag inside wordpress tag using add_shortcode
- How to get post ID with hooks publish_post, new_to_publish, etc
- register_activation_hook in oop approach
- Problem with removing plugin action
- edit_user_profile and show_user_profile are not firing inside a class
- do add_action on condition
- Is there a way to figure out which action/filter invoked a function?
- get gravity form ID from backend/wordpress admin
- How to pass variables to a function argument using add_action [duplicate]
- publish_post action doesn’t work
- Run a plugin just ‘once’ per page reload
- the_post hook is not firing for me
- do_action Nested List
- Create a post builder skin in a plugin
- Plugin Development – Functions or Hooks?
- How do I add some javascript validation to the admin interface form’s onsubmit?
- Basic function call on init failing
- How to create Admin Notice from Plugin with argument? [duplicate]
- Hook for page Request?
- Editing wp-config.php
- New bulk action to resend welcome emails
- How to remove a class function from a plugin by using remove_action()?
- Trying to add_action in a loop
- Action on WordPress Install
- wp_ajax action responds with 0
- Custom CSS not being added by plugin
- Retrieve options set through a plugin
- override function from my plugin [closed]
- What hook can I use to modify custom post data before it is displayed on the page?
- Running a function with args in add_action()
- How to append new form elements in “Add New” form of Users in WordPress admin panel?
- I cannot include a file in my plugin settings page
- Displaying page content from plugin, inside exising empty WP page
- Hook from plugin doesn’t fire up from external PHP script
- Callback hooked to post_updated firing on new posts as well
- The function called on the wp head hook becomes null
- Discern a specific plugin’s action hooks
- How to remove default action from a plugin?
- How to Unhook actions/filters in within Class in plugin
- WPML – Hook when language is switched (change user language)
- Nested Actions and Filters
- Use action, filter, or hook to append HTML to WordPress plugin function
- Passing function into add_action always returns the first argument
- Get post content inside plugin class method
- Ajax call to php function doesn’t work PHP code
- Change hook to add_action in a plugin class
- Frontend AJAX Request causes Error: ‘Call to undefined function add_action’
- echo plugin results on pages
- How to get bulk actions handler to display simple “Hello World”?
- 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?
- wp_login_form() ignoring login_form action hook
- how to repeat taxonomy in different places on wordpress
- AJAX login without a plugin does not work. when add a action to function.php
- Remove action working on functions.php but not in a plugin. Why?
- change output location of plugin function using a custom hook
- Removing this filter added by a plugin
- Which filters or actions involve with index page for plugin?
- Call a function with href
- WooCommerce Order Status Displays Twice on Order Page
- Which action/filter can i use for a Member Plugin [closed]