Disable gravatar
-
Wanted to disable the gravatar but couldn’t do it so change the class-woothemes-our-team.php
Instead of:
$fields['gravatar_email'] = array( 'name' => __( 'Gravatar E-mail Address', 'our-team-by-woothemes' ), 'description' => sprintf( __( 'Enter an e-mail address, to use a %sGravatar%s, instead of using the "Featured Image".', 'our-team-by-woothemes' ), '<a href="' . esc_url( 'https://gravatar.com/' ) . '" target="_blank">', '</a>' ), 'type' => 'text', 'default' => '', 'section' => 'info' );
I applied a filter:
if ( apply_filters( 'gravatar_email', true ) ) { //code above here }
Just thought this would be good to add and also here there is the full customisation options:
– gravatar_email (only works with code above)
– woothemes_our_team_member_role
– woothemes_our_team_member_url
– woothemes_our_team_member_contact_email
– woothemes_our_team_member_tel
– woothemes_our_team_member_twitter
– woothemes_our_team_member_user_search
– woothemes_our_team_member_user_idGreat plugin, congratulations, also the code is very clean and readable (hi5)
- The topic ‘Disable gravatar’ is closed to new replies.