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": [
"",
""
]
}
]