Filter: aa_user_show_last_post_query

/**
* Filter the users last post Query
*
* @since 1.9.7
*
* @param string Query.
* @param int $user_id The Current user ID.
*/
$my_query = new WP_Query( apply_filters( 'aa_user_show_last_post_query', $args, $user_id ) );

Used to adjust the query used to retrieve the last post items e.g.

add_filter( 'aa_user_show_last_post_query', 'aa_user_show_last_post_query', 10, 2 );

function aa_user_show_last_post_query( $query, $user_id ){

$query['category_name'] = 'new, uncategorized'; // addjut as needed
return $query;
}

%d bloggers like this: