acf_delete_taxonomy()
Deletes an ACF taxonomy from the database.
No Hooks.
Returns
true|false. True if taxonomy was deleted.
Usage
acf_delete_taxonomy( $id );
- $id(int|string)
- The ACF taxonomy ID, key or name.
Changelog
| Since 6.1 | Introduced. |
acf_delete_taxonomy() acf delete taxonomy code ACF 6.8.8
function acf_delete_taxonomy( $id = 0 ) {
return acf_delete_internal_post_type( $id, 'acf-taxonomy' );
}