cn_address_options
This filter supplies an array containing the core address types. The array key is the address type ID and the array value is the address label.
The address key ID needs to be in all lowercase using underscores in places of spaces and the address label can be any text that you wish.
The following example code adds two new address types named “Shipping” and “Receiving”.
function cn_my_new_addresses_types( $options ) { $options['shipping'] = 'Shipping'; $options['receiving'] = 'Receiving'; return $options; } add_filter( 'cn_address_options', 'cn_my_new_addresses_types' ); |
cn_phone_options
This filter supplies an array containing the core phone types. The array key is the phone type ID and the array value is the phone label.
The phone key ID needs to be in all lowercase using underscores in places of spaces and the phone label can be any text that you wish.
The following example code adds two new phone types named “Shipping” and “Receiving”.
function cn_my_new_phone_types( $options ) { $options['shipping'] = 'Shipping'; $options['receiving'] = 'Receiving'; return $options; } add_filter( 'cn_phone_options', 'cn_my_new_phone_types' ); |
cn_email_options
This filter supplies an array containing the core email types. The array key is the email type ID and the array value is the email label.
The email key ID needs to be in all lowercase using underscores in places of spaces and the email label can be any text that you wish.
The following example code adds two new phone types named “Primary” and “Secondary”.
function cn_my_new_email_types( $options ) { $options['primary'] = 'Primary'; $options['secondary'] = 'Secondary'; return $options; } add_filter( 'cn_email_options', 'cn_my_new_email_types' ); |
—