Add "View logs" link in settings

This commit is contained in:
Alex P 2021-12-21 17:01:11 +02:00
parent 3c074eb529
commit cfc10ff0d9
2 changed files with 3 additions and 1 deletions

View file

@ -729,7 +729,8 @@ return array(
'title' => __( 'Logging', 'woocommerce-paypal-payments' ),
'type' => 'checkbox',
'desc_tip' => true,
'label' => __( 'Enable logging', 'woocommerce-paypal-payments' ),
'label' => __( 'Enable logging. ', 'woocommerce-paypal-payments' ) .
' <a href="' . admin_url( 'admin.php?page=wc-status&tab=logs' ) . '">' . __( 'View logs', 'woocommerce-paypal-payments' ) . '</a>',
'description' => __( 'Enable logging of unexpected behavior. This can also log private data and should only be enabled in a development or stage environment.', 'woocommerce-paypal-payments' ),
'default' => false,
'screens' => array(