From 479fc18a42a74dddfd1f8699bd2b6791c0c5b68f Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Mon, 16 Nov 2015 22:40:15 +0800 Subject: [PATCH] Added 'um_profile_query_make_posts' filter hook This filter hook can modify query posts in templates/profile/posts.php --- templates/profile/posts.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/profile/posts.php b/templates/profile/posts.php index deef44be..c9bbe9cb 100644 --- a/templates/profile/posts.php +++ b/templates/profile/posts.php @@ -1,4 +1,6 @@ -shortcodes->loop = $ultimatemember->query->make('post_type=post&posts_per_page=10&offset=0&author=' . um_user('ID') ); ?> +query->make('post_type=post&posts_per_page=10&offset=0&author=' . um_user('ID') ); ?> + +shortcodes->loop = apply_filters('um_profile_query_make_posts', $query_posts ); ?> shortcodes->loop->have_posts()) { ?>