(authorId: number)
| 316 | } |
| 317 | |
| 318 | export async function getPostsByAuthor(authorId: number): Promise<Post[]> { |
| 319 | return wordpressFetch<Post[]>("/wp-json/wp/v2/posts", { author: authorId }); |
| 320 | } |
| 321 | |
| 322 | export async function getPostsByAuthorSlug( |
| 323 | authorSlug: string |
nothing calls this directly
no test coverage detected