In case that
- I have understood your (very brief) question and
- you’re not actually talking about the
post_tag
-taxonomy
then you have wp_insert_term()
, which is the underlying API function.
Edit
As to the comment, there’s the need of meta data for a term and administrator approval.
WordPress currently has no native way of adding meta data to a taxonomy taxon. There’re ideas “around” it. IMHO they clutter your DB-options table in seconds without a reason. There’re other ways around this, but this would be too much for a single answer, so I can only recommend to find another way of handling tag maintenance.
Related Posts:
- Define page template in wp_insert_post
- Remove tag on my RSS Feed
- get_the_excerpt() not returning anything when post has no excerpt
- Automatically add author’s name to post_tag
- Automatically insert php function into post $the_content
- Adding a class to tag list in a function
- Create single.php for specific tag by tag id or name
- list tags with count in author profile page
- Product Tags in Add New product as checkbox list [closed]
- Retrieve tags data in post body
- Echo tags used to describe the theme
- Is possible add icon in title posts only in specific tag?
- Create post using Ajax
- Display tags that only appear in one category
- Add a unique class to HTML tag/element
- How to edit the Tags within the image file URLs?
- Function filter breaking tag archive menus
- Tags break custom Excerpt function
- Numbering lines of code with the tag?
- Randomizing wp_tag_cloud() in child theme
- Sort and display pages with specific custom field (not tag)
- Function to echo (or display?) wordpress tags in the head section
- What is wp_get_post_tags for media tags?
- Allow user only create specific tags
- Removing sanitize_title_with_dashes Function with The Real Title
- Is it possible to use ‘wp_insert_post’ function within a for loop?
- method to fetch entire tag list on archive.php
- require_once() Causing categories and tag pages on dashboard to not refrsh
- Change post count on tag/terms pages to 10
- Custom taxonomy not refreshing page on add
- Automatically add tag if a checkbox is checked
- getExcerpt: Make ellipsis appear only if character limit is reached
- Make WordPress search for only this tags or exclude certain tags from search [duplicate]
- How to get tags and categories?
- If two tags in the middle i need comma
- Display function from functions.php in tag.php
- Bulk set Post Title as Tag where Tag is Empty Function
- How to use the do_action () with parameter
- Extending the site search to include a single custom field
- Notify users whenever a new post is published based on their preference
- Remove Header and Footer in iframe
- Formatting post content to exclude gallery
- Why do I get undefined function export_wp()?
- How do I display a tag cloud with both post tags AND a custom taxonomy?
- How to set global variables in template page?
- Setting featured image with function, 1 part not working
- Function to show only first instance of shortcode
- Comments to only be seen by their author
- Using the child theme functions.php to change the customizer.php on parent theme
- Can’t Update function.php after writing short code
- How to get last updated row or ID in wordpress
- Remove function or filter
- options.php problem – data not saved
- Filtering posts by category name based on page’s slug
- adding custom classes for tables
- Load parent theme files before child theme functions.php
- 2 Loops, Only Displaying 1 Loop in Both Loops
- CSS for menu item added via functions.php
- Two functions.php files in one theme
- Make parent page only link to first subpage
- Pulling Twitter RSS feed not working as expected (fatal error)
- Execute a ultimate member action when user role is updated
- Search filter by Post title OR Meta Title Value [duplicate]
- Why is functions.php file in child not initializing and over-writing parent?
- Creating new blog on multisite programatically without hacks?
- Filtering out the #more anchor link that gets produced by
- Exclude from the query posts with meta_key and meta_value
- How to add custom JavaScript in functions?
- srcset and custom field get_post_meta and wp_get_attachment_url
- Adding code using functions.php in child theme
- Extending a custom framework built into WordPress to automatically turn the ‘Search Engine Visibility’ setting ON / OFF, dependant on environment
- Page get parameter doesn’t work with is_single() function
- Need to convert image url to a Base_64 data url with wordpress function..
- Add Adsense code between job listings – wp job manager plugin
- How can I change the size of the text in Word Press
- Modify shortcode to work with custom post types
- How to hightlight all ancestor menu items of a child page NOT displayed in menu
- Show admin page, only if function is being used
- Get users with different roles and call function on each of them (user_meta)
- Show errormessages on wrong username/password on custom loginform?
- How to apply the ‘current_page_item’ class to an archive page in `wp_list_pages()`?
- functions.php pharse error on complete new install
- If has action not working as expected
- Update wp_postmeta table based on 2 keys
- Best practice to call a function from a button-link?
- Disable wordpress update notification
- Class parameter in get_avatar args doesn’t get added to output
- Extend WordPress Audio Widget to accept HLS (.m3u8) URLs
- locking content with overlay/pop up ads
- delete_user_meta for user in spesific group
- Remove Featured Images from Posts Older Than a Certain Date
- Mail function not working with user accounts
- Conditionally write open graph meta property in header
- Adding result from PHP function into an input field
- Using array page name together with page id to deregister script
- Modifying Page-Links format
- Give a function a unique ID
- how to handle multiple forloop?
- PHP error in shortcode [closed]
- How do i set global variable in a function in wordpress functions.php