Filters

I have been adding filters to the code as I work with it. I am listing them here along with examples or the HTML passed to the function

aa_user_level_for_editor

aa_get_all_blogs_where

aa_render_field_display_options

aa_shortcode_display_list  //filters the display atts in a shortcode
aa_widget_display_list     //filters the display atts in a widget

aa_user_biography_filter   // filters the biography / user description

aa_user_bio_length
aa_user_raw_list

aa_user_show_last_post_filter

aa_get_user_postcount_{$blog_id}

aa_get_user_postcount // filters the total post count

Template filters:

aa_user_display_extra_template

aa_userlist_empty

aa_userlist_group_template '
{name}
{group}
'
aa_userlist_group_wrapper_template '
{name}
{group}
'
aa_userlist_template '
{users}
'
aa_post_count

aa_user_email_url_template '<a href="mailto:%1$s">%1$s</a>'
aa_user_name_template '<span class="name">%s</span>'
aa_user_name_template '<span class="name">%s</span>'
aa_user_link_template '<a href="%s" title="%s">%s</a>'
aa_user_email_template ''
aa_user_biography_template '
%s
'
aa_user_last_post_template '
%s
'

aa_user_display_extra

aa_user_final_content // filter the complete HTML for a author
aa_user_template '
{user}
'
aa_user_show_last_post_type 'POSTS', user_id // Filters the users last post type. Default is "posts"

aa_user_show_last_post_query query, user_id

aa_user_show_last_post_html_filter 
'<a href="%s" rel="bookmark" title="Permanent Link to %s">%s</a>'

Contact links where added in version 1.9.7 +
'aa_user_contact_links_text' text show as link text for contact links URL's

‘aa_user_contact_links_url_template’, ‘<li><a href=”%1$s”>%1$s</a></li>’
‘aa_user_contact_links_aim_template’, ‘<li><<a href=”aim:goim?screenname=%s”>%s</a></li>’
‘aa_user_contact_links_facebook_template’, ‘<li><<a href=”https://www.facebook.com/=%s”>%s</a></li>&#8217;
‘aa_user_contact_links_skype_template’, ‘<li><<a href=”skype:%s”>%s</a></li>’
‘aa_user_contact_links_twitter_template’, ‘<li><<a href=”https://twitter.com/%s”>%s</a></li>&#8217;
‘aa_user_contact_links_yim_template’, ‘<li><<a href=”ymsgr:sendim?%s”>%s</a></li>’
if you add a custom contact you may need to us this the create the link in the right format
‘aa_user_contact_links_’ . $user_contact_type . ‘_template’, ‘<li>%s: %1$s</li>’ $user_contact_type is the name of the field and what is passed in the shortcode contact_methods parmerinter.

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: