Store Elementer Data To Custom Place

 // A send custom WebHook

add_action( 'elementor_pro/forms/new_record', function( $record, $handler ) {

    //make sure its our form

    $form_name = $record->get_form_settings( 'form_name' );


    // Replace MY_FORM_NAME with the name you gave your form

    if ( 'טופס חדש' !== $form_name ) {

        return;

    }


    $raw_fields = $record->get( 'fields' );

    $fields = [];

    foreach ( $raw_fields as $id => $field ) {

        $fields[ $id ] = $field['value'];

    }

$gdurl = site_url('videolab/sheet.php');

wp_remote_post( $gdurl, [

'body' => $fields,

]);

 

 

}, 10, 2 );

Comments

Popular posts from this blog

Add Css And Js Files on Specific Page In laravel

Xpendy Pending

Laravel Join with two coloums