Created
November 2, 2016 23:12
-
-
Save wpcrmsystem/a300b79ce9a132842416b8ad2f62d018 to your computer and use it in GitHub Desktop.
Remove default WP-CRM System fields
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'admin_init', 'wpcrm_system_remove_fields' ); | |
function wpcrm_system_remove_fields(){ | |
// remove fields in campaigns | |
remove_filter( 'wpcrm_system_fields', 'wpcrm_system_campaign_fields', 10); | |
// remove fields in contacts | |
remove_filter( 'wpcrm_system_fields', 'wpcrm_system_contact_fields', 10); | |
// remove fields in organizations | |
remove_filter( 'wpcrm_system_fields', 'wpcrm_system_organization_fields', 10); | |
// remove fields in opportunities | |
remove_filter( 'wpcrm_system_fields', 'wpcrm_system_opportunity_fields', 10); | |
// remove fields in projects | |
remove_filter( 'wpcrm_system_fields', 'wpcrm_system_project_fields', 10); | |
// remove fields in tasks | |
remove_filter( 'wpcrm_system_fields', 'wpcrm_system_task_fields', 10); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment