| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Widget Context |
| 4 |
* Plugin URI: https://widgetcontext.com |
| 5 |
* Description: Show or hide widgets depending on the section of the site that is being viewed. |
| 6 |
* Version: 1.2.0 |
| 7 |
* Author: Kaspars Dambis |
| 8 |
* Author URI: https://widgetcontext.com |
| 9 |
* Text Domain: widget-context |
| 10 |
*/ |
| 11 |
|
| 12 |
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) { |
| 13 |
require_once __DIR__ . '/vendor/autoload.php'; |
| 14 |
} |
| 15 |
|
| 16 |
$plugin = new Preseto\WidgetContext\Plugin( __FILE__ ); |
| 17 |
$widget_context = new WidgetContext( $plugin ); |
| 18 |
|
| 19 |
$widget_context->register_module( new WidgetContextCustomCptTax( $widget_context ) ); |
| 20 |
$widget_context->register_module( new WidgetContextWordCount( $widget_context ) ); |
| 21 |
|
| 22 |
$widget_context->init(); |
| 23 |
|