LD_REST_Exams_Questions_Gutenberg_Controller::update_question_item( int $post_id, array $block, string $status = 'publish' )
Updates a single ld_question post.
Description #
Parameters #
- $post_id
-
(int) (Required) Post id.
- $block
-
(array) (Required) Block.
- $status
-
(string) (Optional) Post status.
Default value: 'publish'
Return #
(int|WP_Error) Response int on success, or WP_Error object on failure.
Source #
File: includes/gutenberg/lib/class-ld-rest-exams-questions-gutenberg-posts-controller.php
Changelog #
Version | Description |
---|---|
4.0.0 | Introduced. |