[buddypress-trac] [BuddyPress Trac] #6850: Filter for activity sql JOIN query
buddypress-trac
noreply at wordpress.org
Thu Jan 28 10:49:15 UTC 2016
#6850: Filter for activity sql JOIN query
----------------------------------+-----------------------------
Reporter: jozik | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Component - Activity | Version:
Severity: normal | Keywords:
----------------------------------+-----------------------------
Similar to #2674, can you please add filter for activity sql JOIN query?
bp-activity/classes/class-bp-activity-activity.php line 460
BP_Activity_Activity::get()
Existing WHERE condition filter
{{{#!php
$where_conditions = apply_filters( 'bp_activity_get_where_conditions',
$where_conditions, $r, $select_sql, $from_sql, $join_sql );
$where_sql = 'WHERE ' . join( ' AND ', $where_conditions );
}}}
Sometimes cannot be used without JOIN filter.
Is there possibility to add something like?:
{{{#!php
apply_filters( 'bp_activity_get_join', array( $join_sql ), $r,
$select_sql, $from_sql );
}}}
Thank you.
===
I'm trying to exclude some activities based on data in other tables
without affecting pagination, counting and other stuff.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6850>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list