do_action( 'sensei_rest_api_category_question_saved', $result, $question )
This action is triggered when a category 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 |
array | The question JSON arguments. |
- Since:
- 3.9.0
- Source: