Add documentation links for settings
This commit is contained in:
parent
fb1001b14a
commit
22392546f6
|
@ -218,7 +218,7 @@ class WC_Settings_Products extends WC_Settings_Page {
|
||||||
|
|
||||||
array(
|
array(
|
||||||
'title' => __( 'File download method', 'woocommerce' ),
|
'title' => __( 'File download method', 'woocommerce' ),
|
||||||
'desc' => sprintf(
|
'desc_tip' => sprintf(
|
||||||
/* translators: 1: X-Accel-Redirect 2: X-Sendfile 3: mod_xsendfile */
|
/* translators: 1: X-Accel-Redirect 2: X-Sendfile 3: mod_xsendfile */
|
||||||
__( 'Forcing downloads will keep URLs hidden, but some servers may serve large files unreliably. If supported, %1$s / %2$s can be used to serve downloads instead (server requires %3$s).', 'woocommerce' ),
|
__( 'Forcing downloads will keep URLs hidden, but some servers may serve large files unreliably. If supported, %1$s / %2$s can be used to serve downloads instead (server requires %3$s).', 'woocommerce' ),
|
||||||
'<code>X-Accel-Redirect</code>',
|
'<code>X-Accel-Redirect</code>',
|
||||||
|
@ -230,7 +230,11 @@ class WC_Settings_Products extends WC_Settings_Page {
|
||||||
'class' => 'wc-enhanced-select',
|
'class' => 'wc-enhanced-select',
|
||||||
'css' => 'min-width:300px;',
|
'css' => 'min-width:300px;',
|
||||||
'default' => 'force',
|
'default' => 'force',
|
||||||
'desc_tip' => true,
|
'desc' => sprintf(
|
||||||
|
// translators: Link to WooCommerce Docs.
|
||||||
|
__( "If you are using X-Accel-Redirect download method along with NGINX server, make sure that you have applied settings as described in <a href='%s'>Digital/Downloadable Product Handling</a> guide.", 'woocommerce' ),
|
||||||
|
'https://docs.woocommerce.com/document/digital-downloadable-product-handling#nginx-setting'
|
||||||
|
),
|
||||||
'options' => array(
|
'options' => array(
|
||||||
'force' => __( 'Force downloads', 'woocommerce' ),
|
'force' => __( 'Force downloads', 'woocommerce' ),
|
||||||
'xsendfile' => __( 'X-Accel-Redirect/X-Sendfile', 'woocommerce' ),
|
'xsendfile' => __( 'X-Accel-Redirect/X-Sendfile', 'woocommerce' ),
|
||||||
|
@ -269,7 +273,7 @@ class WC_Settings_Products extends WC_Settings_Page {
|
||||||
'desc_tip' => sprintf(
|
'desc_tip' => sprintf(
|
||||||
// translators: Link to WooCommerce Docs.
|
// translators: Link to WooCommerce Docs.
|
||||||
__( "Not required if you download directory is protected. <a href='%s'>See this guide</a> for more details. Files already uploaded will not be affected.", 'woocommerce' ),
|
__( "Not required if you download directory is protected. <a href='%s'>See this guide</a> for more details. Files already uploaded will not be affected.", 'woocommerce' ),
|
||||||
'https://docs.woocommerce.com/document/digital-downloadable-product-handling'
|
'https://docs.woocommerce.com/document/digital-downloadable-product-handling#unique-string'
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue