Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@webbio/wordpressinterceptor

webbio1ISC1.6.7TypeScript support: included

This package has been created to connect a Wordpress enviroment to a Viper application.

readme

Wordpress Interceptor

This package has been created to connect a Wordpress enviroment to a Viper application.

Usage

You need to import the 4 modules and initialize it in the app.module:

  • DatabaseModule
  • MenuModule
  • PostModule
  • SiteMapModule
@Module({
     imports: [
       DatabaseModule.register(),
       MenuModule.register(platformConfig),
       PostModule.register(platformConfig),
       SiteMapModule.register(),
     ],
  providers: [],
  controllers: [HealthCheckController],
})

The menu and post module requires some configuration. This configuration must be a json object that is build as follows:

[
    {
        "id": 1,
        "wp": "",
        "fe": "",
        "menu": {
            "header": 1,
            "side": 1,
            "footerColumnOne": 1,
            "footerColumnTwo": 1
        },
        "replace": [
          "",
          ""
        ]
    }
]