gdbbx_report_show_link

Report post feature shows report button for all topics and replies by default. Using the filter ‘gdbbx_report_show_link‘ you can control button visibility for individual topics and replies

This filter provides 2 arguments.

Arguments

  • $show: by default it is set to true, return false to hide the link
  • $id: id of the topic or reply

Example

This example will hide the report for topic/reply with ID’s 5 and 10.

add_filter('gdbbx_report_show_link', 'custom__gdbbx_report_show_link', 10, 2);
function custom__gdbbx_report_show_link($show, $id) {
  if ($id == 5 || $id == 10) {
    $show = false
  }
  return $show;
}
0
0
57
Rate this reference

You are not allowed to rate this post.

Comments

Leave a Reply