You could use “save_post” hook to capture all submit within WP, for ex:
function just_got_you( $post_id ) {
if ($post_id != '123')
return;
<< do your logging stuff here >>
}
add_action( 'save_post', 'just_got_you', 10, 2 );
Change 123 to your page/post id. More reference here Save Post Hook
Related Posts:
- Where should my plugin POST to?
- Is it possible to filter the wp_footer() scripts, read the content, and insert them inline?
- When is it useful to use wp_verify_nonce
- wp_create_nonce function doesn’t work inside a plugin?
- What security concerns should I have when setting FS_METHOD to “direct” in wp-config?
- Why “Contact Form 7” doesn’t update PHPmailer library?
- Does WordPress contain “default” anti-SQL injection code that responds with a 404 error?
- Simple form that saves to database
- Find out if request is for custom post type archive before query runs
- Should I use RIPS tool to test my themes and plugins?
- shortcode doesn’t work
- How to disable autocomplete for inputs in contact form 7? [closed]
- How many security plugins are too many? [closed]
- Will WordPress username displayed somewhere in the site?
- Upgrading WordPress 4.0 asks for FTP password
- How Restrict access to admin dashboard by specific static ip?
- Protecting against malicious code in WordPress plugin updates
- How to limit WordPress pages during updates?
- rms_unique_wp_mu_pl_fl_nm.php
- Security issues with WP sites
- medoo framework in WP plugin
- Accessing GET variable named ‘error’
- How can i list random post from multiple category?
- Hook into and send mail using WP Mail SMTP type plugin from HTML static front page?
- The safest way to automate WordPress backups
- How to query the custom fields by language?
- New User Form – Custom Menu Page
- AJAX search posts and pages
- Does WordPress validate inputs to all functions? (such as get_user_meta and insert_user_meta)
- Anonymous Postings
- Nonce failing on form submission
- Contributive page where people logged in can write
- Contact Form 7 Get Image Function [closed]
- Checkbox conflict in my custom plugin admin page
- Trying to fix form resubmition with PRG (Getting error: Cannot modify header information – headers already sent by)
- WP Plugins – Use includes to display page content
- How to create a custom shortcode based on the layout?
- ACF: post query, hide duplicate values [closed]
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- How to insert multiple postmeta values with one query?
- Prevent direct access to WordPress plugin assets?
- order posts by `meta_key`, Does not display posts that does not have `meta_key`
- Too many login attempts
- Is there any pre-existing plugin to track and block IPs with suspicious activity on my site?
- Replacing global wp_query
- Custom API plugin to execute 3rd party API to retrieve data
- How to deal with Slow HTTP POST (slowloris) vulnerability
- Running multiple security plugins
- how do I secure my WP website from hackers? [closed]
- Custom form not showing in correct place on page
- Call another page in forms
- How to Use the Filter “sidebar_login_widget_form_args”
- Select Form Element Not Saving from Plugin Options
- Is it save to replace with in WordPress search form
- Contact Form 7 Plugin emails not being received by some accounts
- Is the Block Bad Queries Plugin Still Relevant?
- Hide plugins and theme from public
- Security of a WordPress Plugin
- login form should redirect to register page for in 1st login next time it should redirected to home page
- How to get data from a form on a wordpress site?
- adding dynamic/multiple slug values in ‘option_none_value’
- prevent anonymous access to WordPress site (non-admin site)
- General Term for this form Field
- wp_set_password() does not work!
- Why is my form going to frontend on html form submission present on the php files inside my custom plugin?
- whether a nonce is required for get type and get_query_var?
- Performance considerations – postmeta table versus new table for custom posts with foreign keys?
- How to pass multiple custom fields as shortcode’s parameters
- Checkbox field that add a subscription product and change prices of other products in checkout and cart page
- Is it possible to custom set query for a WordPress REST API response?
- Securing a plugin pop-up window
- How to send custom mail when a user complete a specific form
- Ajax call to php function doesn’t work PHP code
- After form submission want to show success message in the form page
- Pause form submissions while upgrading plugins
- wp_schedule_event function reference
- How to hide the form after successful php execution
- Why doesn’t a form need an ‘action’ with a plugin that uses the post data?
- $POST variable is empty in receiving php add-on function but can be seen by jscript function
- 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?
- Shortcode in a blog post, footer and related products stop working
- Write mysql credentials in plugin
- Site is continuously accessing by several IPs
- Form submit from wordpress plugin
- w3 total cache and post__not_in
- How do I convince this button to do something when it is clicked?
- WP_Query Date Filtering Inclusive Being Ignored
- SWF in wordpress post
- Linking Plugin Files to WP
- Advanced Custom Fields (ACF) Plugin – Random Image in Sidebar
- Carrying information from button click into form [closed]
- Making a Custom Post Type Publish Loop
- County Finder form/plugin?
- Is it possible to set different payment gateway on each Gravity Forms form? [closed]
- how to show selected options drop down menu values in attributes field in after saving post.php
- How can I add a zip code service availability checker in WordPress without Woocommerce? [closed]
- Order custom post type by posts with most likes first
- WordPress User Registration/ Sign Up -> Able to take Paid Certification Courses & keep track of Completed Certificates
- Block Root REST API Route using custom &/or iThemes
- Accessing Correct Database to Create REST API Endpoint