-
-
Notifications
You must be signed in to change notification settings - Fork 2
Developer API
Nashwan Doaqan edited this page Jul 21, 2019
·
1 revision
bbResolutions comes with various API and different hooks to provide a level of flexibility and sustainability. You can use the following API to extend the plugin's functionality and fulfill your needs.
You can add new resolutions by using bbResolutions\Manager::register()
method as the following example:
add_action('plugins_loaded', function() {
bbResolutions\Manager::register('urgent', array(
'label' => 'Urgent',
'sticker' => '[Urgent]',
'value' => '11',
));
});
You can also un-register resolutions by using bbResolutions\Manager::unregister()
method as the following example:
add_action('plugins_loaded', function() {
bbResolutions\Manager::unregister('urgent');
});