The wpcrm_system_taxonomy_args_{post-type} filter lets you edit the arguments that are used in WP-CRM System for the various taxonomies.

Each type of record has its own post type, so the filters used will be specific for each post type:

  • wpcrm_system_taxonomy_args_wpcrm-contact
  • wpcrm_system_taxonomy_args_wpcrm-organization
  • wpcrm_system_taxonomy_args_wpcrm-project
  • wpcrm_system_taxonomy_args_wpcrm-task
  • wpcrm_system_taxonomy_args_wpcrm-opportunity
  • wpcrm_system_taxonomy_args_wpcrm-campaign

The filter receives an array with the default arguments, and expects an array to be returned.

For more information on possible arguments that can be added, please see the WordPress documentation on Taxonomy arguments.

By default, the following arguments are included:

$args = array(
    'hierarchical'          => true,
    'labels'                => $labels,
    'show_ui'               => true,
    'show_admin_column'     => true,
    'update_count_callback' => '_update_post_term_count',
    'query_var'             => true,
    'rewrite'               => false,
);

Each post type is passed the same array with the exception of the $labels variable.

Please note that the $labels variable is the same as the labels that can be modified in the wpcrm_system_taxonomy_labels_{post-type} filter. If you only need to edit those labels, it is safer to use that filter so you do not accidentally override any of the default behavior of the WP-CRM System taxonomies.