Created
June 26, 2016 17:00
-
-
Save ediamin/1da58031125e89fd906cae2a804055b8 to your computer and use it in GitHub Desktop.
WP ERP - HRM: Custom employee types
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
<?php | |
/** | |
* Plugin Name: WP ERP Extends | |
* Description: Custom filters and hooks for WP ERP | |
*/ | |
add_filter( 'erp_hr_employee_types', 'erp_hr_employee_types_custom_types' ); | |
function erp_hr_employee_types_custom_types( $default_types ) { | |
$custom_types = [ | |
'custom_type_1' => 'Custom Type 1', | |
'custom_type_2' => 'Custom Type 2', | |
'custom_type_3' => 'Custom Type 3', | |
]; | |
return array_merge( $default_types, $custom_types ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment