utils/wp-api/posts
Functions
'Read the “', Functions, '” section'importPostsFromWPAPI()
'Read the “', importPostsFromWPAPI(), '” section'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
'Read the “', Parameters, '” section'string
The API endpoint to fetch posts from.
useBlogPkg
'Read the “', useBlogPkg, '” section'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.