LLMS_Blocks_Reusable::rest_callback_get( array $obj, WP_REST_Request $request )

Read rest field read callback

Parameters Parameters


(array) (Required) Associative array representing the wp_block post.


(WP_REST_Request) (Required) Request object.

Top ↑

Return Return

(WP_Error|array) Error when current user isn't authorized to read the data or the post association array on success.

Top ↑

Source Source

File: libraries/lifterlms-blocks/includes/class-llms-blocks-reusable.php

	public function rest_callback_get( $obj, $request ) {
		return llms_parse_bool( get_post_meta( $obj['id'], '_is_llms_field', true ) ) ? 'yes' : 'no';

Top ↑

Changelog Changelog

Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.