bp_before_blog_single_post

The WordPress Core bp before blog single post hook.

Description

remove_action( 'bp_before_blog_single_post', (string) $bp_like_button, (int) $int ); 

Parameters (2)

0. $bp_like_button (string) => 'bp_like_button'
The bp like button.
1. $int (int) => 1000
The int.

Usage

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

Defined (1)

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

/includes/compatibility.php  
  1. remove_action( 'bp_before_blog_single_post' , 'bp_like_button' , 1000 );