__( 'Webhook', 'advanced-form-integration' ), 'tasks' => [ 'send_to_webhook' => __( 'Send Data to Webhook', 'advanced-form-integration' ) ] ]; return $actions; } add_filter( 'adfoin_settings_tabs', 'adfoin_webhook_settings_tab', 10, 1 ); function adfoin_webhook_settings_tab( $providers ) { $providers['webhook'] = __( 'Webhook', 'advanced-form-integration' ); return $providers; } add_action( 'adfoin_settings_view', 'adfoin_webhook_settings_view', 10, 1 ); function adfoin_webhook_settings_view( $current_tab ) { if( $current_tab != 'webhook' ) { return; } ?>

%s', __( 'Nothing need to be done here. Please create ', 'advanced-form-integration'), admin_url( 'admin.php?page=advanced-form-integration-new'), __( 'New Integration', 'advanced-form-integration')); ?>

30, 'headers' => array( 'Content-Type' => 'application/json', ), 'body' => wp_json_encode( $posted_data ) ); $return = wp_remote_post( $webhook_url, $args ); adfoin_add_to_log( $return, $webhook_url, $args, $record ); } return; }