https://github.com/zef-dev/convoworks-wp-plugin-package-template
https://github.com/zef-dev/convoworks-wp-plugin-package-template
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/zef-dev/convoworks-wp-plugin-package-template
- Owner: zef-dev
- Created: 2022-01-13T08:36:21.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-08T13:16:02.000Z (about 3 years ago)
- Last Synced: 2025-01-23T13:43:36.497Z (about 1 year ago)
- Language: PHP
- Size: 29.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Convoworks WP Plugin Package Template
This plugin template provides a package of example element, intents, entities, function and a template which extends the existing Convoworks WP Plugin.
You can also add additional functionality to convoworks from your existing plugin or theme by registering your own package like this:
```php
function my_package_register($packageProviderFactory, $container) {
$packageProviderFactory->registerPackage(
new Convo\Core\Factory\FunctionPackageDescriptor(
MyExamplePackageDefinition::class,
function() use ( $container) {
return new \MyNamespace\Pckg\MyExample\MyExamplePackageDefinition( $container->get('logger'));
}));
}
add_action( 'register_convoworks_package', 'my_package_register', 10, 2);
```
## Prepare to install on your WordPress Site
1. just upload the included zip file in the example folder