This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'forminator_field_single_markup', function( $html, $id, $required, $options, $value_type ) { | |
$countries = array | |
( | |
'AF' => 'Afghanistan', | |
'AX' => 'Aland Islands', | |
'AL' => 'Albania', | |
'DZ' => 'Algeria', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$answers = array( | |
array( | |
"title" => "Tester 1", | |
"element_id" => "answer-1" | |
), | |
array( | |
"title" => "Tester 2", | |
"element_id" => "answer-2", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$answers = array( | |
array( | |
"title" => "Tester 1", | |
"element_id" => "answer-1" | |
), | |
array( | |
"title" => "Tester 2", | |
"element_id" => "answer-2", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$poll_ids = array( 12, 34, 56, 78, 90 ); | |
$poll = Forminator_API::delete_polls( $poll_ids ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$poll_id = 65; | |
$form = Forminator_API::delete_poll( $poll_id ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$poll_id = 23; | |
$poll = Forminator_API::get_poll( $poll_id ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$wrappers = array( | |
array( | |
'wrapper_id' => 'wrapper-1511378776546-9087', | |
'fields' => array( | |
array( | |
'element_id' => 'name-1', | |
'type' => 'name', | |
'cols' => '12', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$wrappers = array( | |
array( | |
'wrapper_id' => 'wrapper-1511378776546-9087', | |
'fields' => array( | |
array( | |
'element_id' => 'name-1', | |
'type' => 'name', | |
'cols' => '12', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$form_ids = array( 12, 34, 56, 78, 90 ); | |
$forms = Forminator_API::delete_forms( $form_ids ); // Method 1 to delete specific forms | |
$forms = Forminator_API::delete_forms(12, 34, 56, 78, 90 ); // Method 2 to delete specific forms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$form_id = 35; | |
$form = Forminator_API::get_form( $form_id ); |