Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
- This topic has 2 replies, 2 voices, and was last updated 5 years, 11 months ago by
Denslow Brown.
-
AuthorPosts
-
04/20/2017 at 9:29 pm #420669
Denslow Brown
ParticipantHi Steve,
I found the following PHP code in another topic you answered last year.
function cn_add_address_types( $options ) { unset( $options['home'] ); unset( $options['school'] ); unset( $options['other'] ); return $options; } add_filter( 'cn_address_options', 'cn_add_address_types' ); function cn_add_phone_types( $options ) { unset( $options['homefax'] ); unset( $options['workfax'] ); return $options; } add_filter( 'cn_phone_options', 'cn_add_phone_types' ); function cn_add_email_types( $options ) { unset( $options['personal'] ); return $options; } add_filter( 'cn_email_options', 'cn_add_email_types' );
We are making progress on our Directory of Coaches. http://coachapproach4.com/directory-of-credentialed-coaches/submit/
I have a similar question as Charles did. I want to make sure I understand this PHP first.
First function tells CBD to NOT list home, school, and other address – so only work address shows. DEFAULT.
Then for phone types, don’t list homefax and workfax. What about also NOT listing homephone?
Third function tells CBD to NOT list personal email. so default is work email.Our directory will also NOT ever include people’s home phone, home email, or home address.
Will this code meet this requirement?Thanks! I appreciate how responsive you are in the forums.
Warmly,
Mary Ellen
(503) 888-579604/21/2017 at 8:49 am #420703Steven Zahm
Keymaster@ Denslow
re: What about also NOT listing homephone?
Add
unset( $options['homephone'] );
to the function below the other two.re; Will this code meet this requirement?
Sure, sounds like it should.
Hope that helps!
04/21/2017 at 7:03 pm #420779Denslow Brown
ParticipantPerfect! Thanks, Steve.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.