utils/wp-api/pages
Esta página aún no está disponible en tu idioma.
Functions
Section titled “Functions”importPagesFromWPAPI()
Section titled “importPagesFromWPAPI()”function importPagesFromWPAPI(endpoint: string): Promise<void>
Defined in: studiocms/packages/studiocms_devapps/src/utils/wp-api/pages.ts:67
Imports pages from a WordPress API endpoint.
This function fetches all pages from the specified WordPress API endpoint and imports each page individually.
Parameters
Section titled “Parameters”endpoint
Section titled “endpoint”string
The WordPress API endpoint to fetch pages from.
Returns
Section titled “Returns”Promise
<void
>
A promise that resolves when all pages have been imported.
Throws
Section titled “Throws”Will throw an error if the pages cannot be imported.