Home › Forums › Ultra Community › How-To and Troubleshooting › Extended Activity › Reply To: Extended Activity
June 4, 2020 at 1:14 pm
#14232

MihChe
Keymaster
Hi Jimmy,
Yes, you can easily control that using a filter hook
Example of turning off quotes and files formats
if(class_exists('\UltraCommHooks'))
{
add_filter(\UltraCommHooks::FILTER_ACTIVITY_POSTS_FORMAT, function ($arrActivityPostFormat){
unset($arrActivityPostFormat['quote'], $arrActivityPostFormat['file']);
return $arrActivityPostFormat;
});
}
Possible values for the keys are:
status
image
quote
video
audio
link
file
Please let me know if this is what you’re looking for.
~Mihai