LLMS_REST_Posts_Controller::handle_terms( int $object_id, WP_REST_Request $request )

Updates the post’s terms from a REST request.


Description Description

Heavily based on WP_REST_Posts_Controller::handle_terms().


Parameters Parameters

$object_id

(Required) The post ID to update the terms form.

$request

(Required) The request object with post and terms data.


Top ↑

Return Return

(null|WP_Error) WP_Error on an error assigning any of the terms, otherwise null.


Top ↑

Source Source

File: libraries/lifterlms-rest/includes/abstracts/class-llms-rest-posts-controller.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.3 Filter taxonomies by show_in_llms_rest property instead of public.
1.0.0-beta.2 Filter taxonomies by public property instead of show_in_rest.
1.0.0-beta.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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