aa_user_show_last_post_html_filter

Allows you to add content or change the last post link

/**
 * Filter the users last post link HTML.
 *
 * @since 1.8.6.0
 *
 * @param string $permalink The last post permalink.
 * @param string $title_attr The last post Title attribute.
 * @param string $title The last post Title.
 * @param int $id The last post ID.
 * @param int $user_id The Current user ID.
 */
$out .= sprintf(
   apply_filters( 'aa_user_show_last_post_html_filter',
      '<a href="%s" rel="bookmark" title="Permanent Link to %s">%s</a>',
      get_the_permalink( $id ),
      the_title_attribute( array( 'echo' => false, 'post' => $id ) ),
      get_the_title( $id ),
      $id,
      $user_id
   ),
   get_the_permalink( $id ),
   the_title_attribute( array( 'echo' => false, 'post' => $id ) ),
   get_the_title( $id )
);

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: