05/14/2015 at 2:30 pm
#334275
Keymaster
@ George
Yeah, a copy/paste error on my part… that trailing comma in the first line of the function should be a semi-colon. Here are corrected snippets:
Address:
function cn_add_address_types( $options ) {
$options['headquarters'] = __( 'Headquarters' , 'connections' );
// You can also remove those you do not require.
// Remove the '//' in front of 'unset' to remove the "Other" address type.
//unset( $options['other'] );
return $options;
}
add_filter( 'cn_address_options', 'cn_add_address_types' );
Date:
function cn_add_date_types( $options ) {
$options['new_date_type'] = __( 'New Date Type' , 'connections' );
return $options;
}
add_filter( 'cn_date_options', 'cn_add_date_types' );
-
This reply was modified 10 years ago by
Steven Zahm. Reason: Correct code
