Change how filter is implemented to help both 3PD and translators

This commit is contained in:
vedanshujain 2020-02-06 14:11:22 +05:30
parent 707a9bf9a0
commit ee0e94e909
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ class WC_Settings_Products extends WC_Settings_Page {
'options' => array(
'force' => __( 'Force downloads', 'woocommerce' ),
'xsendfile' => __( 'X-Accel-Redirect/X-Sendfile', 'woocommerce' ),
'redirect' => apply_filters( 'woocommerce_redirect_only_method_name', __( 'Redirect only (Insecure)', 'woocommerce' ) ),
'redirect' => apply_filters( 'woocommerce_redirect_only_method_is_secure', false ) ? __( 'Redirect only', 'woocommerce' ) : __( 'Redirect only (Insecure)', 'woocommerce' ),
),
'autoload' => false,
),