upload_post_params

Filters the media upload post parameters.

Description

apply_filters( 'upload_post_params', (unknown) $post_params ); 

Parameters (1)

0. $post_params (unknown)
The post params.

Usage

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

Defined (1)

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

/views/back/campaigns.php  
  1. $post_params = apply_filters('upload_post_params', $post_params); // hook change! old name: 'swfupload_post_params'