Skip to content

Instantly share code, notes, and snippets.

View bappi-d-great's full-sized avatar

Bappi D great bappi-d-great

View GitHub Profile
@bappi-d-great
bappi-d-great / code.php
Created July 25, 2018 20:15
Method: get_form_fields()
<?php
$form_id = 7;
$fields = Forminator_API::get_form_fields( 7 );
@bappi-d-great
bappi-d-great / code.php
Created July 25, 2018 19:58
Method: delete_form_wrapper()
<?php
$form_id = 7;
$id = 'wrapper-1511347711918-1669';
Forminator_API::delete_form_wrapper( $form_id, $id );
@bappi-d-great
bappi-d-great / code.php
Created July 25, 2018 19:28
Method: move_form_wrapper()
<?php
$form_id = 7;
$id = 'wrapper-1511347711918-1669';
$new_position = 3;
Forminator_API::move_form_wrapper( $form_id, $id, $new_position );
@bappi-d-great
bappi-d-great / code.php
Created July 25, 2018 18:51
Method: get_form_wrapper()
<?php
$form_id = 7;
$wrapper_id = 'wrapper-1511347712118-1739';
$fields = Forminator_API::get_form_wrapper( 7, 'wrapper-1511347712118-1739' );
@bappi-d-great
bappi-d-great / code.php
Created July 25, 2018 18:44
Method: get_form_wrappers()
<?php
$form_id = 7;
$fields = Forminator_API::get_form_wrappers( $form_id );
@bappi-d-great
bappi-d-great / code.php
Created July 6, 2018 08:33
Forminator Settings Elements
// Main container
"form-padding-top" : "0",
"form-padding-right" : "0",
"form-padding-bottom" : "0",
"form-padding-left" : "0",
"form-border-width" : "0",
"form-border-style" : "none",
"form-border-radius" : "0",
// Typography - Label
"cform-label-font-family" : "Roboto",
@bappi-d-great
bappi-d-great / code.php
Last active July 6, 2018 07:56
Method: update_quiz()
<?php
$results = array(
array(
"title" => "Van",
"order" => 0,
"slug" => "Van",
"image" => "http://localhost/forminator/wp-content/uploads/2018/01/10719770_hi-222x300.jpeg",
"description" => "You better buy a VAN"
),
@bappi-d-great
bappi-d-great / code.php
Last active July 6, 2018 07:55
Method: add_quiz()
<?php
$results = array(
array(
"title" => "Van",
"order" => 0,
"slug" => "Van",
"image" => "http://localhost/forminator/wp-content/uploads/2018/01/10719770_hi-222x300.jpeg",
"description" => "You better buy a VAN"
),
@bappi-d-great
bappi-d-great / code.php
Last active July 6, 2018 08:10
Method: delete_quizzes( $quiz_ids )
<?php
$quiz_ids = array( 12, 34, 56, 78, 90 );
$forms = Forminator_API::delete_quizzes( $quiz_ids ); // Method 1 to delete specific forms
$forms = Forminator_API::delete_quizzes( 12, 34, 56, 78, 90 ); // Method 2 to delete specific forms
@bappi-d-great
bappi-d-great / code.php
Created July 6, 2018 06:51
Method: get_quizzes( $quiz_ids = null )
<?php
$forms = Forminator_API::get_quizzes(); // Method 1 to get all quizzes
$quiz_ids = array( 12, 34, 56, 78, 90 );
$forms = Forminator_API::get_quizzes( $quiz_ids ); // Method 2 to get specific quizzes
$forms = Forminator_API::get_quizzes(12, 34, 56, 78, 90 ); // Method 3 to get specific quizzes