메소드 |
설명 |
|
add_video_upload_mimes ( array $existing_mimes = [] ) : array |
Makes sure that all video mimes are added in, as multi site installs can remove them. |
|
can ( $cap, $user_id = false ) |
A can of coke |
|
change_add_new_menu_location ( ) |
Changes the add new menu location, so that VideoPress will be enabled
when a user clicks that button. |
|
enqueue_admin_scripts ( ) |
Register VideoPress admin scripts. |
|
enqueue_admin_styles ( ) |
Register and enqueue VideoPress admin styles. |
|
filter_video_mimes ( string $value ) : integer |
Filter designed to get rid of non video mime types. |
|
init ( ) |
Singleton |
|
is_connection_owner ( $user_id = false ) |
Returns true if the provided user is the Jetpack connection owner. |
|
jetpack_module_deactivated ( ) |
Runs when the VideoPress module is deactivated. |
|
on_init ( ) |
Fires on init |
|
print_in_footer_open_media_add_new ( ) : boolean |
A work-around / hack to make it possible to go to the media library with the add new box open. |
|
update_attachment_url_for_videopress ( string $url, integer $post_id ) : mixed |
An override for the attachment url, which returns back the WPCOM videopress original url,
if it is set to the the objects metadata. this allows us to show the original uploaded
file on the WPCOM architecture, instead of the locally uplodaded file,
which doeasn't exist. |
|
videopress_pluploder_config ( $config ) |
Modify the default plupload config to turn on videopress specific filters. |
|