Get post information via AJAX
-
Since CF7 is AJAX fired, as soon as the form is submitted I want to be able to grab meta-data about the newly created post via some event listener or similar.
For CF7 itself I usually use this function
var wpcf7Form = document.querySelector( '.wpcf7' ); wpcf7Form.addEventListener( 'wpcf7submit', function( event ) { console.log( event ); }, false );But it doesn’t seem like CF7_2_Posts changes that “event” variable. Is there a way to achieve this?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Get post information via AJAX’ is closed to new replies.