Completed
Push — development ( 9b3a0a...a4aa3a )
by
unknown
02:30
created

Header_Scripts_Field::get_hook_name()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Carbon_Fields\Field;
4
5
/**
6
 * Header scripts field class.
7
 * Intended only for use in theme options container.
8
 */
9
class Header_Scripts_Field extends Scripts_Field {
10
11
	/**
12
	 * {@inheritDoc}
13
	 */
14
	protected $hook_name = 'wp_head';
15
16
	/**
17
	 * {@inheritDoc}
18
	 */
19
	protected function get_default_help_text() {
20
		return __( 'If you need to add scripts to your header, you should enter them here.', 'carbon-fields' );
21
	}
22
}
23