Skip to content

Instantly share code, notes, and snippets.

@pentatonicfunk
Last active February 13, 2023 08:45
Show Gist options
  • Save pentatonicfunk/8d6a6a06d96beefd972b48c48f00db49 to your computer and use it in GitHub Desktop.
Save pentatonicfunk/8d6a6a06d96beefd972b48c48f00db49 to your computer and use it in GitHub Desktop.
Project 2
PROJECT 2 Files # 8d6a6a06d96beefd972b48c48f00db49
<html>
<body>
HTML
</body>
</html>

Description

This method is used to update an entry to a form

Usage

Forminator_API::add_quiz_entries( $quiz_id, $entry_metas );

Parameters

Name Type Description
$quiz_id int The ID of the quiz
$entry_metas array The array of array of entries

Example

<?php
$quiz_id = 7;
$entry_metas = array(
            array(
                'name' => 'text-1',
                'value' => 'Text Input Value',
            ),
            array(
                'name' => 'text-1',
                'value' => 'Text Input Value',
            ),
  );
Forminator_API::add_quiz_entries( $quiz_id, $entry_metas );
<?php
$quiz_id = 7;
$entry_metas = array(
array(
'name' => 'text-1',
'value' => 'Text Input Value',
),
array(
'name' => 'text-1',
'value' => 'Text Input Value',
),
);
Forminator_API::add_quiz_entries( $quiz_id, $entry_metas );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment