PHP Class VideoPress_Media_Library, jetpack

Show file Open project: automattic/jetpack Class Usage Examples

Public Methods

Method Description
ajax_query_attachments_args ( array $args ) : array Media Grid: Filter out any videopress video posters that we've downloaded, so that they don't seem to display twice.
init ( ) : VideoPress_Media_Library Initialize the VideoPress_Media_Library and get back a singleton instance.
media_list_table_query ( WP_Query $query ) : array Media List: Do the same as ^^ but for the list view.

Protected Methods

Method Description
add_status_check_to_meta_query ( array $meta_query ) : array Add the a videopress_status check to the meta query and if it has a videopress_status only include those with a status of 'completed' or 'processing'.

Private Methods

Method Description
__construct ( ) Private VideoPress_Media_Library constructor.

Method Details

add_status_check_to_meta_query() protected method

Add the a videopress_status check to the meta query and if it has a videopress_status only include those with a status of 'completed' or 'processing'.
protected add_status_check_to_meta_query ( array $meta_query ) : array
$meta_query array
return array

ajax_query_attachments_args() public method

Media Grid: Filter out any videopress video posters that we've downloaded, so that they don't seem to display twice.
public ajax_query_attachments_args ( array $args ) : array
$args array
return array

init() public static method

Initialize the VideoPress_Media_Library and get back a singleton instance.
public static init ( ) : VideoPress_Media_Library
return VideoPress_Media_Library

media_list_table_query() public method

Media List: Do the same as ^^ but for the list view.
public media_list_table_query ( WP_Query $query ) : array
$query WP_Query
return array