Developers may want to add their own functionality to the Client Area extension. Doing so is made easy through the addition of several hooks and filters.
The [wpcrm_system_client_area] shortcode makes use of five filters that can be used to modify the output of each of the display parameters.
// Controls the display of the Projects list add_filter( 'wpcrm_system_client_area_projects', 'wpcrm_system_show_client_area_projects', 10, 1 ); // Controls the display of Tasks that are shown inside the Projects list add_filter( 'wpcrm_system_client_area_project_tasks', 'wpcrm_system_show_client_area_project_tasks', 10, 1 ); // Controls the display of the Tasks list add_filter( 'wpcrm_system_client_area_tasks', 'wpcrm_system_show_client_area_tasks', 10, 1 ); // Controls the display of the Campaigns list add_filter( 'wpcrm_system_client_area_campaigns', 'wpcrm_system_show_client_area_campaigns', 10, 1 ); // Controls the display of the Invoices list add_filter( 'wpcrm_system_client_area_invoices', 'wpcrm_system_show_client_area_invoices', 10, 1 ); // Controls the display of custom information add_filter( 'wpcrm_system_client_area_custom', 'wpcrm_system_show_custom', 10, 2 );
There are three new meta boxes added to WP-CRM System's Projects, Tasks, and Campaigns. These are added through the following filters.
add_action( 'wpcrm_system_custom_meta_boxes', 'wpcrm_system_client_area_projects_metabox' ); add_action( 'wpcrm_system_custom_meta_boxes', 'wpcrm_system_client_area_tasks_metabox' ); add_action( 'wpcrm_system_custom_meta_boxes', 'wpcrm_system_client_area_campaigns_metabox' );