Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function trigger_wpf_nationbuilder( $entry, $form ) {
- if ( ! function_exists( 'wp_fusion' ) ) {
- return;
- }
- $feeds = wp_fusion()->integrations->{'gravity-forms'}->get_feeds( $entry['form_id'] );
- foreach ( $feeds as $feed ) {
- if ( $feed['addon_slug'] == 'wpfgforms' ) {
- wp_fusion()->integrations->{'gravity-forms'}->process_feed( $feed, $entry, $form );
- }
- }
- }
- add_action( 'gform_post_add_entry', 'trigger_wpf_nationbuilder', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement