bp_template_content

Hook bbPress topics template into plugins template.

Description

add_action( 'bp_template_content', (string) $bbp_member_forums_topics_content ); 

Parameters (1)

0. $bbp_member_forums_topics_content (string) => 'bbp_member_forums_topics_content'
The bbp member forums topics content.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'bp_template_content', $bbp_member_forums_topics_content ); 
The following example is for adding a hook callback.
  1. // define the bp_template_content callback 
  2. function action_bp_template_content( $bbp_member_forums_topics_content ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'bp_template_content', 'action_bp_template_content', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'bp_template_content', 'action_bp_template_content', 10, 1 ); 

Defined (4)

The action is defined in the following location(s).

/includes/extend/buddypress/functions.php  
  1. add_action( 'bp_template_content', 'bbp_member_forums_topics_content' ); 
  1. add_action( 'bp_template_content', 'bbp_member_forums_replies_content' ); 
  1. add_action( 'bp_template_content', 'bbp_member_forums_favorites_content' ); 
  1. add_action( 'bp_template_content', 'bbp_member_forums_subscriptions_content' );