Improved creation and assignment of post taxonomies and terms #6

Merged
vlw merged 1 commit from refs/pull/6/head into master 2026-02-16 11:26:59 +01:00
vlw commented 2026-02-16 11:20:59 +01:00 (Migrated from codeberg.org)

With this PR we can (among actually creating taxonomies and terms) assign and remove terms from a post with the following

$post = new Post(123);
$term = new Term(321);

Add a term to a post:

$post->add_term($term);

Remove a term from a post:

$post->remove_term($term);
With this PR we can (among actually creating taxonomies and terms) assign and remove terms from a post with the following ```php $post = new Post(123); $term = new Term(321); ``` Add a term to a post: ```php $post->add_term($term); ``` Remove a term from a post: ```php $post->remove_term($term); ```
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
vlw/wp!6
No description provided.