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

Header_Scripts_Field::get_default_help_text()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
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