LLMS_Blocks_Reusable::rest_register_fields()
Register custom rest fields
Contents
Return Return
(void)
Source Source
File: libraries/lifterlms-blocks/includes/class-llms-blocks-reusable.php
public function rest_register_fields() {
register_rest_field(
'wp_block',
'is_llms_field',
array(
'get_callback' => array( $this, 'rest_callback_get' ),
'update_callback' => array( $this, 'rest_callback_update' ),
)
);
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 2.0.0 | Introduced. |