diff --git a/includes/admin/downloads/metabox.php b/includes/admin/downloads/metabox.php index 155170f35f2..3eeac64c49b 100755 --- a/includes/admin/downloads/metabox.php +++ b/includes/admin/downloads/metabox.php @@ -806,10 +806,12 @@ function edd_render_file_row( $key, $args, $post_id, $index ) { 'thumbnail_size' => null, ) ); - $prices = edd_get_variable_prices( $post_id ); - $variable_pricing = edd_has_variable_prices( $post_id ); - $variable_display = $variable_pricing ? '' : ' style="display:none;"'; - $variable_class = $variable_pricing ? ' has-variable-pricing' : ''; ?> + $prices = edd_get_variable_prices( $post_id ); + $variable_pricing = edd_has_variable_prices( $post_id ); + $variable_display = $variable_pricing ? '' : ' style="display:none;"'; + $variable_class = $variable_pricing ? ' has-variable-pricing' : ''; + $custom_file_options = has_action( 'edd_download_file_option_row' ); + ?>
@@ -817,9 +819,16 @@ function edd_render_file_row( $key, $args, $post_id, $index ) { - - - + '' . esc_html__( 'Remove', 'easy-digital-downloads' ) . '' . sprintf( __( 'Remove file %s', 'easy-digital-downloads' ), esc_html( $key ) ) . '', + ); + if ( $custom_file_options ) { + array_unshift( $actions, '' . esc_html__( 'Show advanced settings', 'easy-digital-downloads' ) . '' ); + } + + echo implode( ' | ', $actions ); + ?>
@@ -885,9 +894,15 @@ function edd_render_file_row( $key, $args, $post_id, $index ) { - - +
+
+ +
+
+