Archive for the ‘Uncategorized’ Category



Used to filter the list of users created to display

this example can you used to remove user makr as denied by the “new user approve” plugin


function aa_user_raw_list( $users ){
   $filtered_users = array();
   foreach ( $users as $user ) {
      $user_status = get_user_meta( $user->user_id, 'pw_user_status', true );
      if ( 'denied' !== $user_status ) {
         $filtered_users[] = $user;

   return $filtered_users;
add_filter( 'aa_user_raw_list','aa_user_raw_list' );


ShortCode Button

This the shortcode button that helps you create the shortcode you need


It will open this control panel


I hope this helps



Support for BuddyPress Xprofiles

widgetIn version I have added support for BuddyPress Xprofiles

If you have BuddyPress installed you will now be able to pick to display items from the Xprofile.

As there are a number of add-on that extent the type of values stored I also added filter to allow your control the outputted HTML


Here is the code that created the example above it that takes a color value and sets the background color to match

* Example filter
* @param $html
* @param $args
* @param $value
* @return mixed
function display_extra_template( $html, $args , $value ){
if( 'color' == $args['field'] ){
$html = str_replace( 'class=', 'style="background-color:' . $value . '" class=', $html );
return $html;
add_filter( 'aa_user_display_extra_template', 'display_extra_template', 10 , 3 );

Please let know if you have problem with this.

Author Avatars List 1.8.0

  • Replaced the pre 2.6 wordpres widget code with the current widget API calls to enable visibility setting
  • Breaking change in CSS *.multiwidget_author_avatars* is now *.widget_author_avatars*. This is caused by a library change in-order to support the jetpack visibility option.
  • If you have added CSS to your theme you may have to update it for this upgrade (do a find and replace).
  • CSS changed .multiwidget_author_avatars changed to .widget_author_avatars. This was caused by the widget API update
  • Added expemently support for Co-Author Plus Plugin – the post count does not work for linked account – will take a patch that fixs it 🙂
  • Moved the display option to the right column to make more room for roles
  • Split ‘Recent Activity’ and ‘BudyPress last activity’ (only shows buddypress running) to separate options in the advance ordering option
  • Split / removed ‘Recent Activity’ into sitewide (pages / custom page types / posts) and just posts (any old short-code will call just posts)

I have moved the main code repo to feel free to create a pull requests and submit patches there.

Author Avatars List 1.5

I’ve just released version 1.5 of the Author Avatars List plugin.

Changes in this version:

  • Added page_size to shortcode options (see below)
  • Added Romanian translation from Alexander Ovsov of  Web Hosting Geeks (Web Geek Sciense)

page_size: Max number per page

With this set paging markup (“<< 1 2 3 4 5 >>”) will be displayed below the avatars block.
The avatars are reloaded via ajax.
Note: this code is only used in the shortcode in page or post and not in a widget.
Example: [authoravatars page_size=10]

You can download the new version as usual from the from the WordPress plugin repository or of course simply install it using WordPress’ plugin update feature.

Please let me know if you have any problems with the page_size change.