[Resolved] How can I disable secondary avatars in activity items?
-
I know I can disable them in css, with
.activity-header > p > a > img.avatar { display: none; }
, but I’d like to disable them in PHP, so that the page might load a little faster.I figure I have to remove the filter
secondary_avatars
from the hookbp_get_activity_action_pre_meta
, but since it was added with an object context, I have to do that with an array containing the variable instance of the BP_Legacy object. It would look something like this:remove_filter( 'bp_get_activity_action_pre_meta', array( $bp_legacy_var???, 'secondary_avatars', 10 ) );
, but I don’t know what $bp_legacy_var??? is supposed to be. Does anyone know?
- The topic ‘[Resolved] How can I disable secondary avatars in activity items?’ is closed to new replies.