wp_create_term


wp_create_term ( $tag_name, $taxonomy = 'post_tag' )

Parameters:
  • (int|string) $tag_name
  • (string) $taxonomy Optional. The taxonomy for which to retrieve terms. Default 'post_tag'.
Returns:
  • (array|WP_Error)
Defined at:

Description

Add a new term to the database if it does not already exist.

Related Functions

wp_create_user, wp_create_category, wp_create_tag, wpmu_create_user, wp_update_term

Top Google Results

User discussions

wpseek mobile