| 1 |
<?php |
| 2 |
//if accessed directly exit |
| 3 |
if(!defined( 'ABSPATH' )) exit; |
| 4 |
|
| 5 |
/** |
| 6 |
* All registered filter's handlers should be in app\Hooks\Handlers, |
| 7 |
* addFilter is similar to add_filter and addCustomFilter is just a |
| 8 |
* wrapper over add_filter which will add a prefix to the hook name |
| 9 |
* using the plugin slug to make it unique in all WordPress plugins, |
| 10 |
* ex: $app->addCustomFilter('foo', ['FooHandler', 'handleFoo']) is |
| 11 |
* equivalent to add_filter('slug-foo', ['FooHandler', 'handleFoo']). |
| 12 |
*/ |
| 13 |
|
| 14 |
/** |
| 15 |
* @var $app FluentBoards\Framework\Foundation\Application |
| 16 |
*/ |
| 17 |
$app->addCustomFilter('ajax_options_task_assignees', 'TaskHandler@searchAssignees', 10, 3); |
| 18 |
$app->addCustomFilter('ajax_options_non_board_wordpress_users', 'TaskHandler@searchNonBoardWordpressUsers', 10, 3); |
| 19 |
$app->addCustomFilter('ajax_options_crm_contacts', 'TaskHandler@searchContact', 10, 3); |
| 20 |
$app->addCustomFilter('task_attachment_file_upload', 'FileHandler@handleUpload', 10, 1); |
| 21 |
$app->addCustomFilter('wp_editor_media_file_upload', 'FileHandler@handleMediaFileUpload', 10, 1 ); |
| 22 |
|