Completed
Push — master ( 0ab7b5...1a45bc )
by Marin
02:48
created

Header_Scripts_Field::print_scripts()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 7
Ratio 100 %

Importance

Changes 3
Bugs 1 Features 0
Metric Value
c 3
b 1
f 0
dl 7
loc 7
rs 9.4285
cc 3
eloc 4
nc 2
nop 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
	 * Default help text to be displayed for this type of field.
12
	 */
13
	public function get_default_help_text() {
14
		return __( 'If you need to add scripts to your header, you should enter them here.', 'carbon_fields' );
15
	}
16
17
	/**
18
	 * Action name to be hooked on.
19
	 */
20
	public function get_hook_name() {
21
		return 'wp_head';
22
	}
23
}
24