LLMS_REST_Posts_Controller::get_taxonomy_rest_base( object $taxonomy )

Maps a taxonomy name to the relative rest base

Parameters Parameters


(object) (Required) The taxonomy object.

Top ↑

Return Return

(string) The taxonomy rest base.

Top ↑

Source Source

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

	protected function get_taxonomy_rest_base( $taxonomy ) {

		return ! empty( $taxonomy->rest_base ) ? $taxonomy->rest_base : $taxonomy->name;


Top ↑

Changelog Changelog

Version Description
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.