| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Product Audio Options. |
| 5 |
* |
| 6 |
* @package Merchant |
| 7 |
*/ |
| 8 |
|
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
exit; // Exit if accessed directly |
| 11 |
} |
| 12 |
|
| 13 |
// Settings |
| 14 |
Merchant_Admin_Options::create( array( |
| 15 |
'title' => esc_html__( 'Settings', 'merchant' ), |
| 16 |
'module' => 'product-audio', |
| 17 |
'fields' => array( |
| 18 |
|
| 19 |
array( |
| 20 |
'id' => 'autoplay', |
| 21 |
'type' => 'switcher', |
| 22 |
'title' => esc_html__( 'Autoplay', 'merchant' ), |
| 23 |
'desc' => esc_html__( 'Autoplay may cause usability issues for some users.', 'merchant' ), |
| 24 |
'default' => false |
| 25 |
), |
| 26 |
|
| 27 |
) |
| 28 |
) ); |
| 29 |
|