rest_api_clients_allowed_video_uploads

Filter the list of whitelisted video clients.

Description

apply_filters( 'rest_api_clients_allowed_video_uploads', (array) $clients_allowed_video_uploads ); 

Parameters (1)

0. $clients_allowed_video_uploads (array)
Array of whitelisted Video clients.

Usage

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

Defined (1)

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

/class.json-api-endpoints.php  
  1. $clients_allowed_video_uploads = apply_filters( 'rest_api_clients_allowed_video_uploads', $clients_allowed_video_uploads );