get/show Last ID

to have the ID, you can try this hook e.g. add_action(“save_post”, function ($post_ID, $post, $update) { if ( !$update && class_exists(“Flamingo_Inbound_Message”) && (Flamingo_Inbound_Message::post_type === $post->post_type) ) { // here $post_ID is the ID of the new created inbound message } }, 10, 3);

Auto Submit Contact Form 7

You need to call submit() function on document ready check the code <script type=”text/javascript”> jQuery(document).ready(function(){ jQuery(“#wpcf7-f3857-o1 form”).submit(); }); </script> In my code wpcf7-f3857-o1 is the contact form’s css id. You need to change that id. try the code and let me know the result. Thanks

how to enable ajax on submitting of contact form 7?

Not sure about ajax, but you could use a custom DOM event to run some javascript… From the “contact form 7” documentation: The simplest way is utilizing Contact Form 7’s custom DOM event to run JavaScript. The following is an example of script that redirects you to another URL when the wpcf7mailsent event occurs: <script> … Read more