Action: sensei_rest_api_question_saved

do_action( 'sensei_rest_api_question_saved', $result, $question_type, $question )

This action is triggered when a question is created or updated by the lesson quiz REST endpoint.

Parameters:
Name Type Description
$result int | WP_Error

Result of wp_insert_post. Post ID on success or WP_Error on failure.

$question_type string

The question type.

$question array

The question JSON arguments.

Since:
  • 3.9.0
Source: