Filters and Actions
Dynamics provides a number of WordPress filters and actions that allow you to extend the plugin and augment its behaviour.
Filters
wordpresscrm_before_{$filter_key}_parse_args
wordpresscrm_after_{$filter_key}_parse_args
wordpresscrm_tabs
Filters the list of available tabs in the Settings UI.
<?php
$filteredTabs = apply_filters( 'wordpresscrm_tabs', $tabs );
$tabs
is an array
of available tabs implementations. The default is:
<?php
$tabs = [
'general' => [ '\AlexaCRM\WordpressCRM\Admin\Tab\General', 10 ],
'forms' => [ '\AlexaCRM\WordpressCRM\Admin\Tab\Forms', 20 ],
'views' => [ '\AlexaCRM\WordpressCRM\Admin\Tab\Views', 30 ],
'attachments' => [ '\AlexaCRM\WordpressCRM\Admin\Tab\Attachments', 40 ],
'messages' => [ '\AlexaCRM\WordpressCRM\Admin\Tab\Messages', 50 ],
'about' => [ '\AlexaCRM\WordpressCRM\Admin\Tab\About', 60 ],
];
Array key is the tab slug, value[0]
is a FQCN for the tab implementation (must be instance of AlexaCRM\WordpressCRM\Admin\Tab
, i.e. inherited from it). value[1]
is tab priority -- used for sorting tabs in the UI.