Warning: This method has been deprecated.
Inventory_Presser_Taxonomies::save_taxonomy_term( int $post_id, string $taxonomy_name, string $element_name )
Used by the save_post_{post_type} hook. Create a term relationship between a post and a term. Inserts the term first if it does not exist.
On This Page
Parameters Parameters
- $post_id
-
(int) (Required)
- $taxonomy_name
-
(string) (Required)
- $element_name
-
(string) (Required)
Return Return
(void)
Source Source
File: includes/class-taxonomies.php
public static function save_taxonomy_term( $post_id, $taxonomy_name, $element_name ) { doing_it_wrong( __METHOD__, 'This method has been deprecated. Please use wp_set_object_terms() instead.', '15.1.2' ); }
Expand full source codeCollapse full source codeView on Github