# wp-coder/3.1.1/includes/settings/options/js-code.php

WP Coder – Insert &amp; Manage Code Snippets, version 3.1.1. 51 lines.

- Page: https://pluginprobe.com/plugins/wp-coder/3.1.1/code/includes/settings/options/js-code.php
- Raw: https://pluginprobe.com/plugins/wp-coder/3.1.1/raw/includes/settings/options/js-code.php
- Modified: 2023-11-13T15:27:26+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/wp-coder/3.1.1/code/includes/settings/options/js-code.php#L10-L20`.

```php
<?php

defined( 'ABSPATH' ) || exit;

return [

	'jquery' => [
		'type'  => 'checkbox',
		'name'  => '[jquery_dependency]',
		'title' => __( 'JQuery Dependency', 'wpcoder' ),
		'text'  => __( 'Disable', 'wpcoder' ),
	],

	'inline' => [
		'type'  => 'checkbox',
		'name'  => '[inline_js]',
		'title' => __( 'Inline', 'wpcoder' ),
		'text'  => __( 'Enable', 'wpcoder' ),
	],

	'minified'   => [
		'type'    => 'select',
		'name'    => '[minified_js]',
		'title'   => __( 'Minified', 'floating-button' ),
		'default' => 'obfuscate',
		'options' => [
			'none'      => 'none',
			'minify'    => 'Minify',
			'obfuscate' => 'Obfuscate'
		],
	],

	'attributes'   => [
		'type'    => 'select',
		'name'    => '[js_attributes]',
		'title'   => __( 'Attribute', 'floating-button' ),
		'options' => [
			0       => 'none',
			'defer' => 'defer',
			'async' => 'async'
		],
	],

	'js_code' => [
		'type'  => 'textarea',
		'name'  => 'js_code',
		'class' => 'is-full'
	],


];
```
