Hello @earl_d,
You can try below code to disable “Upload Video” option from video choice.
if( ! function_exists( 'your_theme_child_masvideos_upload_video_fields' ) ) {
function your_theme_child_masvideos_upload_video_fields( $fields ) {
if( isset( $fields['video_choice'] ) ) {
$fields['video_choice'] = array(
'type' => 'select',
'options' => array(
'video_embed' => __( 'Embed Video', 'masvideos' ),
'video_url' => __( 'Video URL', 'masvideos' ),
),
'label' => __( 'Video Method', 'masvideos' ),
'required' => false,
'class' => array( 'form-row-video_choice' ),
'priority' => 60,
);
if( isset( $fields['video_attachment_id'] ) ) {
unset( $fields['video_attachment_id'] );
}
}
return $fields;
}
}
add_filter( 'masvideos_upload_video_fields', 'your_theme_child_masvideos_upload_video_fields' );
Regards