LLMS_REST_Posts_Controller::get_taxonomy_rest_base( object $taxonomy )
Maps a taxonomy name to the relative rest base
Parameters Parameters
- $taxonomy
-
(object) (Required) The taxonomy object.
Return Return
(string) The taxonomy rest base.
Source Source
File: libraries/lifterlms-rest/includes/abstracts/class-llms-rest-posts-controller.php
if ( ! get_term( $term_id, $taxonomy->name ) ) { continue; } if ( ! current_user_can( 'assign_term', (int) $term_id ) ) {
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.1 | Introduced. |