2017 © Pedro Peláez
 

wordpress-plugin adorable-avatars

This plugin integrates the Adorable Avatars avatar placeholder service into WordPress.

image

tfrommen/adorable-avatars

This plugin integrates the Adorable Avatars avatar placeholder service into WordPress.

  • Wednesday, January 4, 2017
  • by tfrommen
  • Repository
  • 2 Watchers
  • 4 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Adorable Avatars

Version Status Build Downloads License, (*1)

This plugin integrates the Adorable Avatars avatar placeholder service into WordPress., (*2)

Installation

  1. Download ZIP.
  2. Upload contents to the /wp-content/plugins directory on your web server.
  3. Activate the plugin through the Plugins menu in WordPress.
  4. Select Adorable Avatars as default avatar setting on the Discussion Settings page in your WordPress back end.

Filters

Need to customize anything? Just use the provided filters., (*3)

adorable_avatars.force

In case you want to have Adorable Avatars all over your site (i.e., not only as default when there is no Gravatar), use this filter., (*4)

Arguments:, (*5)

  • bool $force Force Adorable Avatars?
  • mixed $id_or_email User identifier.
  • array $args Avatar args.

Usage Example:, (*6)

Use Adorable Avatars no matter what:, (*7)

<?php

add_filter( 'adorable_avatars.force', '__return_true' );

Use Adorable Avatars for anyone but the user with ID 42:, (*8)

<?php

add_filter( 'adorable_avatars.force', function ( $force, $id_or_email ) {

    if ( is_numeric( $id_or_email ) ) {
        $id_or_email = (int) $id_or_email;
    } elseif ( $id_or_email instanceof WP_Post ) {
        $id_or_email = $id_or_email->ID;
    } elseif ( $id_or_email instanceof WP_Comment ) {
        $id_or_email = $id_or_email->user_id;
    }

    return 42 !== $id_or_email;
}, 10, 2 );

Screenshots

Setting
Default Avatar setting - Here you can select Adorable Avatars as default avatar setting., (*9)

Contribution

If you have a feature request, or if you have developed the feature already, please feel free to use the Issues and/or Pull Requests section., (*10)

Of course, you can also provide me with translations if you would like to use the plugin in another not yet included language., (*11)

License

Copyright (c) 2016 Thorsten Frommen, (*12)

This code is licensed under the MIT License., (*13)

The Versions

04/01 2017

dev-master

9999999-dev https://github.com/tfrommen/adorable-avatars

This plugin integrates the Adorable Avatars avatar placeholder service into WordPress.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

user profile image avatar

04/01 2017

v2.1.0

2.1.0.0 https://github.com/tfrommen/adorable-avatars

This plugin integrates the Adorable Avatars avatar placeholder service into WordPress.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

user profile image avatar

04/11 2016

v2.0.0

2.0.0.0 https://github.com/tfrommen/adorable-avatars

This plugin integrates the Adorable Avatars avatar placeholder service into WordPress.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

user profile image avatar

03/02 2016

v1.1.0

1.1.0.0 https://github.com/tfrommen/adorable-avatars

This plugin integrates the Adorable Avatars avatar placeholder service into WordPress.

  Sources   Download

MIT

The Requires

 

The Development Requires

user profile image avatar

03/02 2016

v1.0.0

1.0.0.0 https://github.com/tfrommen/adorable-avatars

This plugin integrates the Adorable Avatars avatar placeholder service into WordPress.

  Sources   Download

MIT

The Requires

 

The Development Requires

user profile image avatar