bpcp_max_upload_size

The BuddyPress Cover Photo bpcp max upload size hook.

Description

apply_filters( 'bpcp_max_upload_size', (unknown) $max_file_sizein_kb ); 

Parameters (1)

0. $max_file_sizein_kb (unknown)
The max file sizein kb.

Usage

To run the hook, copy the example below.
  1. $max_file_sizein_kb = apply_filters( 'bpcp_max_upload_size', $max_file_sizein_kb ); 
  2.  
  3. if ( !empty( $max_file_sizein_kb ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the bpcp_max_upload_size callback 
  2. function filter_bpcp_max_upload_size( $max_file_sizein_kb ) { 
  3. // make filter magic happen here... 
  4. return $max_file_sizein_kb
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bpcp_max_upload_size', 'filter_bpcp_max_upload_size', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bpcp_max_upload_size', 'filter_bpcp_max_upload_size', 10, 1 ); 

Defined (2)

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

/buddypress-cover-photo.php  
  1. return apply_filters('bpcp_max_upload_size', $max_file_sizein_kb); 
  1. return apply_filters( 'bpcp_max_upload_size', $max_file_sizein_kb );