jetpack_videopress_use_legacy_player, false
jetpack_videopress_use_legacy_player, false
Appears in: jetpack.16.0.1
Hook Type: filter
Displaying hooks found in version: jetpack.16.0.1apply_filters('jetpack_videopress_use_legacy_player, false') is found 2 times:
- /modules/videopress/class.videopress-player.php line 422
* @since 3.7.0 * * @param boolean $videopress_use_legacy_player */ if ( ! apply_filters( 'jetpack_videopress_use_legacy_player', false ) ) { return $this->html5_dynamic_next(); } wp_enqueue_script( 'videopress' ); $video_placeholder_id = $this->video_container_id . '-placeholder'; $age_gate_required = $this->age_gate_required(); - /modules/videopress/class.videopress-video.php line 206
$data = $this->get_data(); if ( is_wp_error( $data ) || empty( $data ) ) { /** This filter is documented in modules/videopress/class.videopress-player.php */ if ( ! apply_filters( 'jetpack_videopress_use_legacy_player', false ) ) { // Unlike the Flash player, the new player does it's own error checking, age gate, etc. $data = (object) array( 'guid' => $guid, 'width' => $maxwidth, 'height' => $maxwidth / 16 * 9, );