Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not possible to disable gravatar #61

Open
angelofm opened this issue Mar 19, 2015 · 0 comments
Open

Not possible to disable gravatar #61

angelofm opened this issue Mar 19, 2015 · 0 comments

Comments

@angelofm
Copy link

In the documentation we have this to disable the role: add_filter( 'woothemes_our_team_member_role', '__return_false' );

I wanted to disable the gravatar but couldn't do it so I have changed the class-woothemes-our-team.php basically wrapping around below code

$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( 'http://gravatar.com/' ) . '" target="_blank">', '</a>' ),
            'type'              => 'text',
            'default'           => '',
            'section'           => 'info'
        );

with this

if ( apply_filters( 'gravatar_email', true ) ) {
    //code above here
}

Also in the documentation would be nice to add 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_id

Great plugin, congratulations, also the code is very clean and readable (hi5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants