Hello John,
Sorry for the delayed reply. Please use the following code:
add_filter( 'bpxcftr_allowed_extensions', function ( $extensions ) { if ( isset( $extensions['file'] ) ) { $new_extensions = array( 'm4a', 'flac', 'mp3', 'mp4', 'aiff', '3gp' ); $extensions['file'] = array_merge( $extensions['file'], $new_extensions ); } return $extensions; } );
It will allow users to upload files of the mentioned extension. But File will be shown as a download link. Also, It might not support all formats.
Regards
RaviHello John,
Thank you for the acknowledgment. Please refer to the link:
This function output the field display.
You can use the ‘bpxcftr_file_display_data’ filter to modify the field output as per your need. Please check.
Regards
Ravi
Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic.
This topic is: resolved