Delete a tag on your WordPress site using your WordPress site's API.
delete_wp_tag(root_url, user, pass, tag_id, verbose = TRUE)
root_url | The domain on which you wish to create the post. |
---|---|
user | The username to be passed into the API call to create the post. |
pass | The password to be used in the API call to create the post. To get this value, you must have the Application Passwords plugin installed, and must create an application using that plugin via your WordPress admin panel; there you will get the password needed. |
tag_id | The text string associated with the tag. |
response from the API. 200 means the tag was created!
if (FALSE) { delete_wp_tag(root_url = 'https://domain.com',user = Sys.getenv('username'), pass = Sys.getenv('password'),tag_id = 12) }