06/20/2016 at 1:09 pm
#380092
Keymaster
@ Carolin
You can use the cn_education_level_options
filter to change the options.
Here’s an example:
add_filter( 'cn_education_level_options', 'cn_change_edu_lvl' ) );
function cn_change_edu_lvl( $options ) {
unset( $options['1'] ); // Remove 1st - 4th Grade
$options['50'] = 'CPA Qualification'; // Add an education option.
return $options;
}
Here’s the list of the existing options:
'-1' => __( 'Choose...', 'connections_education_levels'),
'1' => __( '1st - 4th Grade', 'connections_education_levels'),
'5' => __( '5th - 6th Grade', 'connections_education_levels'),
'7' => __( '7th - 8th Grade', 'connections_education_levels'),
'9' => __( '9th Grade', 'connections_education_levels'),
'10' => __( '10th Grade', 'connections_education_levels'),
'11' => __( '11th Grade', 'connections_education_levels'),
'12' => __( '12th Grade No Diploma', 'connections_education_levels'),
'13' => __( 'High School Graduate', 'connections_education_levels'),
'15' => __( 'Some College No Degree', 'connections_education_levels'),
'20' => __( 'Associate\'s Degree, occupational', 'connections_education_levels'),
'25' => __( 'Associate\'s Degree, academic', 'connections_education_levels'),
'30' => __( 'Bachelor\'s Degree', 'connections_education_levels'),
'35' => __( 'Master\'s Degree', 'connections_education_levels'),
'40' => __( 'Professional Degree', 'connections_education_levels'),
'45' => __( 'Doctoral Degree', 'connections_education_levels'),
You can unset any of the numbers and when adding a new item, you can use any number which is not being used. Infact you are not limited to numbers, you could make them unique strings.
Hope that helps!