Browse: Home / Classes / LD_REST_Exams_Questions_Gutenberg_Controller /

LD_REST_Exams_Questions_Gutenberg_Controller::update_question_item

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 #

Changelog
Version Description
4.0.0 Introduced.