Changeset 30724
- Timestamp:
- 12/03/2014 10:16:04 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r30673 r30724 2762 2762 * 2763 2763 * @param string $term The term to add or update. 2764 * @param string $taxonomy The taxonomy to which to add the term 2764 * @param string $taxonomy The taxonomy to which to add the term. 2765 2765 * @param array|string $args { 2766 * Arguments to change values of the inserted term. 2767 * 2768 * @type string 'alias_of' Slug of the term to make this term an alias of. 2769 * Default empty string. Accepts a term slug. 2770 * @type string 'description' The term description. 2771 * Default empty string. 2772 * @type int 'parent' The id of the parent term. 2773 * Default 0. 2774 * @type string 'slug' The term slug to use. 2775 * Default empty string. 2766 * Optional. Array or string of arguments for inserting a term. 2767 * 2768 * @type string $alias_of Slug of the term to make this term an alias of. 2769 * Default empty string. Accepts a term slug. 2770 * @type string $description The term description. Default empty string. 2771 * @type int $parent The id of the parent term. Default 0. 2772 * @type string $slug The term slug to use. Default empty string. 2776 2773 * } 2777 * @return array|WP_Error An array containing the term_id and term_taxonomy_id, WP_Error otherwise. 2774 * @return array|WP_Error An array containing the `term_id` and `term_taxonomy_id`, 2775 * {@see WP_Error} otherwise. 2778 2776 */ 2779 2777 function wp_insert_term( $term, $taxonomy, $args = array() ) {
Note: See TracChangeset
for help on using the changeset viewer.