class-acf-field-output.php
915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
if ( ! class_exists( 'acf_field_output' ) ) :
/**
* This class and field type has been deprecated since ACF 6.3.2 and will not output anything.
*/
class acf_field_output extends acf_field {
/**
* This function will setup the field type data
*
* @since 5.0.0
*/
public function initialize() {
// vars
$this->name = 'output';
$this->label = 'output';
$this->public = false;
$this->defaults = array(
'html' => false,
);
}
/**
* The render field call. Deprecated since ACF 6.3.2.
*
* @param array $field The $field being edited
* @return false
*/
public function render_field( $field ) {
// Deprecated since 6.3.2 and will be removed in a future release.
_deprecated_function( __FUNCTION__, '6.3.2' );
return false;
}
}
// initialize
acf_register_field_type( 'acf_field_output' );
endif; // class_exists check