# merchant/1.6/inc/modules/code-snippets/admin/options.php

Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together &amp; More for WooCommerce – Merchant, version 1.6. 44 lines.

- Page: https://pluginprobe.com/plugins/merchant/1.6/code/inc/modules/code-snippets/admin/options.php
- Raw: https://pluginprobe.com/plugins/merchant/1.6/raw/inc/modules/code-snippets/admin/options.php
- Modified: 2023-11-29T20:09:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/merchant/1.6/code/inc/modules/code-snippets/admin/options.php#L10-L20`.

```php
<?php
/**
 * Merchant Code Snippets
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

/**
 * Global Header and Footer
 */
Merchant_Admin_Options::create( array(
	'title'  => esc_html__( 'Global Header and Footer', 'merchant' ),
	'module' => 'code-snippets',
	'fields' => array(

		array(
			'id'    => 'header_code_snippets',
			'type'  => 'textarea_code',
			'title' => esc_html__( 'Header', 'merchant' ),
			'desc'  => esc_html__( 'These scripts will be printed in the <head> section.', 'merchant' ),
			'class' => 'merchant-code-snippets-textarea',
		),

		array(
			'id'    => 'body_code_snippets',
			'type'  => 'textarea_code',
			'title' => esc_html__( 'Body', 'merchant' ),
			'desc'  => esc_html__( 'These scripts will be printed just below the opening <body> tag.', 'merchant' ),
			'class' => 'merchant-code-snippets-textarea',
		),

		array(
			'id'    => 'footer_code_snippets',
			'type'  => 'textarea_code',
			'title' => esc_html__( 'Footer', 'merchant' ),
			'desc'  => esc_html__( 'These scripts will be printed above the closing </body> tag.', 'merchant' ),
			'class' => 'merchant-code-snippets-textarea',
		),

	),
) );

```
