Which plugin you’re using for the contact form? It looks likeyou’re thinking about Gravity forms. You can create it with a custom function when the action gform_after_submission
is fired – https://www.gravityhelp.com/documentation/article/gform_after_submission/
For Contact form 7, there is another hook, see here: wpcf7_before_send_mail, wpcf7_mail_sent
http://hookr.io/plugins/contact-form-7/4.3/
Ninjaforms…http://hookr.io/plugins/ninja-forms/2.9.28/#index=a
for the other plugins you should have a look yourself.
If it’s too complicated, go for plugin solution. I have found this one for Gravity forms but haven’t tried it personally. https://wordpress.org/plugins/gravity-forms-custom-post-types/
Related Posts:
- Combining queries with different arguments per post type
- Custom Post Type and Taxonomy URL rewrite
- register_post_type & ‘register_meta_box_cb’ argument
- 404 on child page when parent page slug is identical to custom post type
- How to replicate some of Drupal Views functionality in WordPress?
- Archive page with multiple taxonomies rewrite
- Custom post status and preview
- Date archives for custom post type
- WP Rest API Querying Custom Posts by ACF fields
- display multiple term post from taxonomy in a single page
- How to get_queried_object on multiple objects?
- Allow Author role to publish one post type and not another
- custom taxonomy – Template not working
- How to show post title outside of loop? [closed]
- Query current and future events, ordered by begin date
- adding .current* tags to custom post types and taxonomies
- How to get custom post type menu_name?
- List Posts of a Custom Post Types Ordered by Terms of a Custom Taxonomy?
- Removing Duplicate Custom Taxonomy Terms from within a Dropdown Select?
- Saving repeated option values in a custom query
- Remove custom post type slug not working for child pages
- I am facing problem in my archive page , it is partially working
- Rewrite rules for custom post type slug
- Check if admin is editing page or custom post type
- Make slug as ID Number for custom post types
- Remove duplicated values from a loop
- Admin notice not displaying
- Custom Image Thumbnails of Different Sizes
- Pull a post based on a meta value in a custom post type
- wp_set_object_terms() not adding new term to custom post and custom taxonomy
- Changing number of posts per page on CPT-archive.php, have tried 20-30 code chunks so far
- Prevent stripping MathML tags on post save
- How to set order for a custom post type
- Display users uploaded files as posts
- Search Custom Post Type & Taxonomies
- Custom admin post.php page
- Displaying CPT and custom taxonomy side by side in Bootstrap 4 component
- Use Custom Post Type archive page for the taxonomies term archive page
- Is it possible to have dedicated page for parent/child taxonomy?
- Nested Custom Post Type or Custom Post Type Parents?
- How to use TinyMCE Editor for one of my custom post meta field?
- How to import a custom MySQL DB table into a WordPress custom post type
- Custom post type permalink returns 404
- Add custom post type drafts to RSS feed
- Deleting taxonomy terms and relationships on a custom post_type when a user is deleted
- filter search custom field query
- cutsom posts 404ing
- Using wp_query to modify the loop in index.php for a CPT
- Different slug taxonomy for two different CPT
- Getting WordPress Flexslider Item Number
- Why does my taxonomy have a category style div id?
- Sorting posts by custom field value in array
- Postname on unique permalink structure appends “-2” for a custom post type. How can I get this to stop happening?
- WordPress Custom Post Type and Shortcode for Portfolio Items
- How to populate a Gravity Forms Custom Post Field (dropdown type) with custom taxonomy terms? [closed]
- Post ordering not working with custom field
- Different column width in 2 rows with bootstrap and custom post types-different classes needed
- Twitter Product Cards
- Custom post type tags not showing in search
- Custom Post Type Root Template
- Add unique ID number to end of permalink
- Correct way of adding taxonomy to a custom post type
- custom post template ignored after altering permalinks
- How to display tag attribute “target” in the_author_meta( ‘description’ );
- Problem with date comparison for custom fields
- Multiple custom post type queries causing wrong post types to be grabbed in taxonomy + single templates?
- Using global $post; with custom post types
- Custom Post Type Implementation
- Why will comments not remain open on custom post types?
- Fetch data of 2 relational Custom Post in WordPress
- Change dynamically the dropdown list value
- Get related custom post by specifics custom post ID
- Add extra elements to the_post in a custom post_type
- Visualize info in just custom post_type in theme
- Displaying posts inside table having issues
- load wordpress events into full calendar jquery
- custom post template not getting picked for posts with Unicode title
- Using get_post_type with a custom URL format?
- Using Orderby and meta_value to order natural/alphanumerical
- Search Custom Post Types in WordPress
- get comments for custom post type
- why featured image option isn’t showing in custom post type?
- Using post title in an array
- What’s the most efficient way to get two queries based on an if statement?
- Best approach to allow front-end display of posts’ reviewers?
- Query pulling all taxonomies, not one I am specifying
- Filter Content on all Post Types
- How to query all custom posts of a certain type and checking what category they have
- Post Editor: display categories from current post type taxonomy only?
- Exclude a custom category from a list
- Custom post type: can’t enable comments by default
- How to customize admin edit page – custom type
- Advice Needed for Post Meta Database Efficiency
- Custom post types not using archive structure
- Add Image field to CPT
- Create a list of months based posts
- After wp_insert_post() custom post type does not show in the admin
- Use a Variable in update_post_meta as the $meta_key
- How to set up a echo? [closed]
- post__in select all custom posts and not the selected array of ids