Skip to content
This repository was archived by the owner on May 18, 2025. It is now read-only.
This repository was archived by the owner on May 18, 2025. It is now read-only.

Not possible to disable gravatar #61

Description

@angelofm

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)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions