videopress_media_list_table_query

The WordPress Core videopress media list table query function.

Description

videopress_media_list_table_query( $query ); 

Parameters (1)

0. $query
The query.

Usage

  1. if ( !function_exists( 'videopress_media_list_table_query' ) ) { 
  2. require_once '/modules/videopress/editor-media-view.php'; 
  3.  
  4. // The query. 
  5. $query = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = videopress_media_list_table_query($query); 
  9.  

Defined (1)

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

/modules/videopress/editor-media-view.php  
  1. function videopress_media_list_table_query( $query ) { 
  2. if ( is_admin() && $query->is_main_query() && ( 'upload' === get_current_screen()->id ) ) { 
  3. $meta_query = array( 
  4. array( 
  5. 'key' => 'videopress_poster_image',  
  6. 'compare' => 'NOT EXISTS',  
  7. ),  
  8. ); 
  9.  
  10. if ( $old_meta_query = $query->get( 'meta_query' ) ) { 
  11. $meta_query[] = $old_meta_query; 
  12.  
  13. $query->set( 'meta_query', $meta_query );