It is generally recommended to explicitly declare the visibility for methods.
Adding explicit visibility (private, protected, or public) is generally
recommend to communicate to other developers how, and from where this method
is intended to be used.
Loading history...
30
31
$field_options['number_format'] = array(
32
'type' => 'checkbox',
33
'label' => __( 'Format number?', 'gravityview' ),
34
'desc' => __('Display numbers with thousands separators.', 'gravityview'),
35
'value' => false,
36
);
37
38
$field_options['decimals'] = array(
39
'type' => 'number',
40
'label' => __( 'Decimals', 'gravityview' ),
41
'desc' => __('Precision of the number of decimal places. Leave blank to use existing precision.', 'gravityview'),
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.