— or —
array( 'text' => __( 'Upload file', 'download-monitor' ) ), 'media_library' => array( 'text' => __( 'Media Library', 'download-monitor' ), 'data' => array( 'choose' => __( 'Choose a file', 'download-monitor' ), 'update' => __( 'Insert file URL', 'download-monitor' ), ) ), 'external_source' => array( 'text' => __( 'Custom URL', 'download-monitor' ) ) ); if ( ! $file_browser ) { $buttons['browse_for_file'] = array( 'text' => __( 'Browse for file', 'download-monitor' ) ); } $buttons = apply_filters( 'dlm_downloadable_file_version_buttons', $buttons ); foreach ( $buttons as $key => $button ) { echo ' $data_value ) { echo 'data-' . esc_attr( $data_key ) . '="' . esc_attr( $data_value ) . '" '; } } echo '>' . esc_html( $button['text'] ) . ' '; } ?>
array( 'text' => __( 'Upload file', 'download-monitor' ) ), 'media_library' => array( 'text' => __( 'Media Library', 'download-monitor' ), 'data' => array( 'choose' => __( 'Choose a file', 'download-monitor' ), 'update' => __( 'Insert file URL', 'download-monitor' ), ) ) ); if ( ! $file_browser ) { $buttons['browse_for_file'] = array( 'text' => __( 'Browse for file', 'download-monitor' ) ); } $buttons = apply_filters( 'dlm_downloadable_file_version_buttons', $buttons ); foreach ( $buttons as $key => $button ) { echo ' $data_value ) { echo 'data-' . esc_attr( $data_key ) . '="' . esc_attr( $data_value ) . '" '; } } echo '>' . esc_html( $button['text'] ) . ' '; } ?> ', '' ); ?>