video_flash_params

Filters the Flash parameters of the VideoPress player.

Description

apply_filters( 'video_flash_params', $array_this_video_players_swf_params, (int) $int, (int) $int ); 

Parameters (3)

0. $array_this_video_players_swf_params
The array this video players swf params.
1. $int (int) => 10
The int.
2. $int (int) => 1
The int.

Usage

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

Defined (1)

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

/modules/videopress/class.videopress-player.php  
  1. apply_filters( 'video_flash_params', (array) $this->video->players->swf->params, 10, 1 )