Skip to content

Instantly share code, notes, and snippets.

@ediamin
Created June 26, 2016 17:00
Show Gist options
  • Save ediamin/1da58031125e89fd906cae2a804055b8 to your computer and use it in GitHub Desktop.
Save ediamin/1da58031125e89fd906cae2a804055b8 to your computer and use it in GitHub Desktop.
WP ERP - HRM: Custom employee types
<?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