Add one or more entries to existing quiz.
- $quiz_id
int
- The ID of the quiz.
- $entry_metas
array
- Array of entry.
int[]|WP_Error
Array of entry id on success otherwise WP_Error.
Forminator_API::add_quiz_entries( $quiz_id, $entry_metas );
$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 );
File: /library/class-api.php