06/10/2016 at 11:04 am
#379004
Keymaster
@ ottomek
re: How could I add 3 or more phone number labels and options to the Phone Number repeatable field dropdown?
It is possible to add custom phone types. Use this code snippet:
add_filter( 'cn_phone_options', 'cn_add_new_phone_types' );
function cn_add_new_phone_types( $options ) {
$new = array(
'phone_one' => 'Phone One',
'phone_two' => 'Phone Two',
'phone_three' => 'Phone Three',
);
$options = $new + $options;
return $options;
}
Hope that helps!