notification for custom post creation
-
Hello,
I’ve created a notification for when a new custom post is created; however the custom post type creation is handled by Post My CF7 Form which I think is preventing BWPN email from being sent.
Post My CF7 has a hook that I can use “after the submitted form is saved to post” and I’d like to try and run a BWPN function to send the email where the “do something” is below. Can you indicate what this function should look like?
add_action('cf7_2_post_form_submitted_to_reg', 'new_reg_mapped',10,4); /** * Function to take further action once form has been submitted and saved as a post. Note this action is only fired for submission which has been submitted as opposed to saved as drafts. * @param string $post_id new post ID to which submission was saved. * @param array $cf7_form_data complete set of data submitted in the form as an array of field-name=>value pairs. * @param string $cf7form_key unique key to identify your form. * @param array $submitted_files array of files submitted in the form, if any file fields are present. */ function new_reg_mapped($post_id, $cf7_form_data, $cf7form_key, $submitted_files){ //do something. }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘notification for custom post creation’ is closed to new replies.