컨텐츠로 건너뛰기

utils/wp-api/posts

이 콘텐츠는 아직 해당 언어로 제공되지 않습니다.

function importPostsFromWPAPI(endpoint: string, useBlogPkg: boolean): Promise<void>

Defined in: studiocms/packages/studiocms_devapps/src/utils/wp-api/posts.ts:66

Imports posts from a WordPress API endpoint.

string

The API endpoint to fetch posts from.

boolean

A boolean indicating whether to use the blog package.

Promise<void>

A promise that resolves when all posts have been imported.

Will throw an error if the import process fails.