gdpol_buddypress_modify_topic_activity_content

This filter (gdpol_buddypress_modify_topic_activity_content) is part of the BuddyPress integration, and it is used to filter the activity action text saved when the activity for poll creation is executed. This filter is used only if the method to add activity is set to adding poll with topic activity content.

This filter provides 4 arguments.

Arguments

  • $activity_text: this is the activity text generated by the plugin. Filter handling function has to return this value (modified or unmodified)
  • $activity_title: text portion of the activity text, without the HTML wrapper
  • $poll: created poll object
  • $args: settings for the topic activity

Example

add_filter('gdpol_buddypress_modify_topic_activity_content', 'custom__modify_topic_activity_content', 10, 5);
function custom__modify_topic_activity_content($activity_text, $activity_title, $poll, $args) {
  // modify the $activity_text //
  return $activity_text;
}
1
0
137
Rate this reference

You are not allowed to rate this post.

Comments

Leave a Reply