You appear to be a bot. Output may be restricted
Description
Retrieves the term by a given ID.
Usage
$WP_Term|WP_Error|null = WP_UnitTest_Factory_For_Term::get_object_by_id( $term_id );
Parameters
- $term_id
- ( int ) required – ID of the term to retrieve.
Returns
WP_Term|WP_Error|null WP_Term on success. WP_Error if taxonomy does not exist. Null for miscellaneous failure.
Source
File name: wordpress-develop-tests/phpunit/includes/factory/class-wp-unittest-factory-for-term.php
Lines:
1 to 3 of 3
public function get_object_by_id( $term_id ) { return get_term( $term_id, $this->taxonomy ); }