wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_create_tag › WordPress Function

Da2.3.0
Deprecaton/a
wp_create_tag ( $tag_name )
Parametri:
  • (int|string) $tag_name
    Richiesto:
Ritorna:
  • (array|WP_Error)
Definito a:
Codex:

Adds a new tag to the database if it does not already exist.



Sorgenti

function wp_create_tag( $tag_name ) {
	return wp_create_term( $tag_name, 'post_tag' );
}