utils/wp-api/posts
이 콘텐츠는 아직 해당 언어로 제공되지 않습니다.
Functions
Section titled “Functions”importPostsFromWPAPI()
Section titled “importPostsFromWPAPI()”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.
Parameters
Section titled “Parameters”endpoint
Section titled “endpoint”string
The API endpoint to fetch posts from.
useBlogPkg
Section titled “useBlogPkg”boolean
A boolean indicating whether to use the blog package.
Returns
Section titled “Returns”Promise
<void
>
A promise that resolves when all posts have been imported.
Throws
Section titled “Throws”Will throw an error if the import process fails.