Renders a single Legacy Widget and wraps it in a JSON-encodable array.
Parameters
$request
WP_REST_Requestrequired- Full details about the request.
Source
public function render( $request ) {
return array(
'preview' => $this->render_legacy_widget_preview_iframe(
$request['id'],
isset( $request['instance'] ) ? $request['instance'] : null
),
);
}
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.