- Timestamp:
- 12/18/2019 12:17:54 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-term.php
r46586 r46985 47 47 * @param array|string $fields The context in which to relate the term to the object. 48 48 * 49 * @return int The term id.49 * @return int The term ID. 50 50 */ 51 51 public function update_object( $term, $fields ) { … … 59 59 60 60 /** 61 * Attach terms onthe given post.61 * Attach terms to the given post. 62 62 * 63 * @param int $post_id The Post ID.63 * @param int $post_id The post ID. 64 64 * @param string|array $terms An array of terms to set for the post, or a string of terms 65 65 * separated by commas. Hierarchical taxonomies must always pass IDs rather … … 77 77 78 78 /** 79 * Create a term and returns it as a object.79 * Create a term and returns it as an object. 80 80 * 81 81 * @param array $args Array or string of arguments for inserting a term. 82 82 * @param null $generation_definitions The default values. 83 83 * 84 * @return null|WP_Error|WP_TermWP_Term on success. WP_error if taxonomy does not exist. Null for miscellaneous failure.84 * @return WP_Term|WP_Error|null WP_Term on success. WP_error if taxonomy does not exist. Null for miscellaneous failure. 85 85 */ 86 86 public function create_and_get( $args = array(), $generation_definitions = null ) { … … 96 96 97 97 /** 98 * Retrieves the term by given term id.98 * Retrieves the term by a given ID. 99 99 * 100 * @param int $term_id The term idto retrieve.100 * @param int $term_id ID of the term to retrieve. 101 101 * 102 * @return null|WP_Error|WP_TermWP_Term on success. WP_error if taxonomy does not exist. Null for miscellaneous failure.102 * @return WP_Term|WP_Error|null WP_Term on success. WP_error if taxonomy does not exist. Null for miscellaneous failure. 103 103 */ 104 104 public function get_object_by_id( $term_id ) {
Note: See TracChangeset
for help on using the changeset viewer.