Advertisement
Georgiev

WP-CRM System - Filter

Jan 7th, 2025 (edited)
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.64 KB | None | 0 0
  1. add_filter( 'wpcrm_system_client_area_task_information', 'wpcrm_system_client_area_task_information' );
  2. function wpcrm_system_client_area_task_information( $data ) {
  3. return array_merge(
  4.             $data,
  5.             array(
  6.             'start-date' => true,
  7.             'due-date' => true,
  8.             'priority' => false,
  9.             'progress' => true,
  10.             )
  11.             );
  12. }
  13.  
  14. add_filter( 'wpcrm_system_client_area_project_information', 'wpcrm_system_client_area_project_information' );
  15. function wpcrm_system_client_area_project_information( $data ) {
  16.             return array_merge(
  17.             $fields,
  18.             array(
  19.             'closedate' => true,
  20.             'progress' => true,
  21.             'status' => true,
  22.             'value' => true,
  23.             )
  24. );
  25. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement