X7ROOT File Manager
Current Path:
/home/oakwood/public_html/wp-content/plugins/metform-pro/core/integrations
home
/
oakwood
/
public_html
/
wp-content
/
plugins
/
metform-pro
/
core
/
integrations
/
ðŸ“
..
📄
Aweber.php
(15.91 KB)
📄
Convert_Kit.php
(3.93 KB)
📄
Fluent_Crm.php
(1.92 KB)
📄
Initiator.php
(969 B)
📄
Mail_Adapter.php
(179 B)
📄
Mail_Adapter_Contract.php
(150 B)
📄
Mail_Poet.php
(2.55 KB)
ðŸ“
auth
ðŸ“
crm
ðŸ“
ecommerce
ðŸ“
email
ðŸ“
email-verification
ðŸ“
google-sheet
📄
multistep-form-controls.php
(25.69 KB)
📄
multistep-section-settings.php
(1.9 KB)
ðŸ“
payment
ðŸ“
pdf-export
ðŸ“
post
📄
response-message-controls.php
(12.49 KB)
📄
rest-api.php
(717 B)
ðŸ“
sms
📄
zapier.php
(1.19 KB)
Editing: zapier.php
<?php namespace MetForm_Pro\Core\Integrations; defined( 'ABSPATH' ) || exit; class Zapier { public function call_webhook( $form_data, $settings ) { $data = $form_data; unset( $data['action'] ); unset( $data['id'] ); unset( $data['form_nonce'] ); return $this->post( $settings['url'], $data ); } public function post( $url, $data = [] ) { $data = json_encode( $data ); $curl = curl_init(); curl_setopt( $curl, CURLOPT_URL, $url ); curl_setopt( $curl, CURLOPT_CUSTOMREQUEST, 'POST' ); curl_setopt( $curl, CURLOPT_RETURNTRANSFER, true ); curl_setopt( $curl, CURLOPT_CONNECTTIMEOUT, 5 ); curl_setopt( $curl, CURLOPT_TIMEOUT, 20 ); curl_setopt( $curl, CURLOPT_SSL_VERIFYPEER, false ); curl_setopt( $curl, CURLOPT_HTTPHEADER, [ 'Content-Type: application/json' ] ); curl_setopt( $curl, CURLOPT_POSTFIELDS, $data ); $msg = []; $response = curl_exec( $curl ); if ( 0 !== curl_errno( $curl ) ) { $msg['status'] = 0; $msg['msg'] = curl_error( $curl ); } else { $msg['status'] = 1; $msg['msg'] = esc_html__( 'Your data inserted on zapier.', 'metform-pro' ); } curl_close( $curl ); //return json_decode( $response, true ); return $msg; } }
Upload File
Create Folder