WP_REST_Terms_Controller::get_term

SummerySummery

Get the term, if the ID is valid.

Syntax

WP_REST_Terms_Controller::get_term( int $id )

ParametersParameters

$id

(int) (Required) Supplied ID.

ReturnReturn

(WP_Term|WP_Error) Term object if ID is valid, WP_Error otherwise.

SourceSource

File: wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php


			

ChangelogChangelog

Changelog
Version Description
4.7.2 Introduced.
Scroll to Top