An open API service indexing awesome lists of open source software.

https://github.com/wpessential/wpessential-widgets

WPEssential Widgets helpin in registry of widgets in WordPress.
https://github.com/wpessential/wpessential-widgets

Last synced: 5 months ago
JSON representation

WPEssential Widgets helpin in registry of widgets in WordPress.

Awesome Lists containing this project

README

          

# WPEssential Widgets

Help to register the widgets in WordPress.

`composer require wpessential/wpessential-widgets`

Add the single widget to WordPress registry

```php
$sidebar = \WPEssential\Library\Widget::make();
$sidebar->add('YOUR_NAMESPACE\CLASS_NAME');
$sidebar->init();
```

Add the multiple widgets to WordPress registry

```php
$sidebar = \WPEssential\Library\Widget::make();
$sidebar->adds(['YOUR_NAMESPACE\CLASS_NAME']);
$sidebar->init();
```

Remove the single widget from WordPress registry

```php
$sidebar = \WPEssential\Library\Widget::make();
$sidebar->remove('YOUR_NAMESPACE\CLASS_NAME');
$sidebar->init();
```

Remove the multiple widget from WordPress registry

```php
$sidebar = \WPEssential\Library\Widget::make();
$sidebar->removes(['YOUR_NAMESPACE\CLASS_NAME']);
$sidebar->init();
```