Commit graph

8 commits

Author SHA1 Message Date
729663a113 feat: add Post::clone() method for shallow copying a Post (#18)
This PR adds a new static method `Post::clone()` which takes a `Post` instance as an argument and creates a new shallow copy of that Post. The copied Post is then returned from this method.

Reviewed-on: https://codeberg.org/vlw/wp/pulls/18
2026-02-24 11:52:12 +01:00
22f7f26f75 fix: return types for Post property hooks (#11)
Reviewed-on: https://codeberg.org/vlw/wp/pulls/11
2026-02-22 11:04:25 +01:00
1b0a9f385f fix: use AUTO_INCREMENT of table as id of new posts (#9)
Reviewed-on: https://codeberg.org/vlw/wp/pulls/9
2026-02-16 13:37:52 +01:00
d52154192d refactor: move properties above methods and substr() varchar table columns (#8)
Reviewed-on: https://codeberg.org/vlw/wp/pulls/8
2026-02-16 13:37:33 +01:00
a70015e314 feat: improved creation and assignment of post taxonomies and terms (#6)
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);
```

Reviewed-on: https://codeberg.org/vlw/wp/pulls/6
2026-02-16 11:26:58 +01:00
b14c14d9b3 feat: add methods for Post featured media Attachments (#4)
In this PR we add methods for setting and getting featured media attachments for posts.

Reviewed-on: https://codeberg.org/vlw/wp/pulls/4
2026-02-15 11:52:29 +01:00
eebe93fc53 feat: add parsing of WordPress taxonomies and terms (#2)
Reviewed-on: https://codeberg.org/vlw/wp/pulls/2
2026-02-15 09:51:02 +01:00
cfe10401a3
initial commit 2026-02-12 13:19:50 +01:00