09/09/2015 at 4:14 pm
#346211
Keymaster
@ Javier
re: I want to select only the work type, and then show on the user profile only type work
Oh, you are in the wrong section of code then. You do not need to edit the Connections PHP files at all to make this change.
Install the Code Snippets plugin.
Add a new snippet with the following code:
function cn_add_remove_types( $options ) {
unset( $options['home'] );
unset( $options['school'] );
unset( $options['other'] );
return $options;
}
add_filter( 'cn_address_options', 'cn_add_remove_types' );
Save and activate the snippet.
That’ll do it. Hope that helps!
