Skip to content

Options

Available options

OptionTypeDefaultRequiredDescription
apiEndpointstring''YesThe endpoint of your WordPress API.
additionalQueryParamsstring'&acf?_embed'NoAdditional query parameters to append to the API requests.
applicationUserstring''NoThe username for the WordPress application.
applicationPasswordstring''NoThe password for the WordPress application.
homeSlugstring'home'NoThe slug for the WordPress homepage.

Set options

ts
export default defineNuxtConfig({
  modules: ['nuxt-wp', {
    // options
  }],

  // Or

  wordpress: {
    // options
  }
})