Skip to content

Commit 49317b2

Browse files
Declare method visibility
1 parent ecc428e commit 49317b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ACF_Field_Unique_ID.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function() {
2525
/**
2626
* Initializes the field.
2727
*/
28-
function __construct() {
28+
public function __construct() {
2929
$this->name = 'unique_id';
3030
$this->label = 'Unique ID';
3131
$this->category = 'basic';
@@ -38,7 +38,7 @@ function __construct() {
3838
*
3939
* @param array $field The field data.
4040
*/
41-
function render_field( $field ) {
41+
public function render_field( $field ) {
4242
printf( '<input type="text" name="%s" value="%s" readonly>',
4343
esc_attr( $field['name'] ),
4444
esc_attr( $field['value'] )
@@ -56,7 +56,7 @@ function render_field( $field ) {
5656
*
5757
* @return string The filtered value.
5858
*/
59-
function update_value( $value, $post_id, $field ) {
59+
public function update_value( $value, $post_id, $field ) {
6060

6161
if ( ! empty( $value ) ) {
6262
return $value;

0 commit comments

Comments
 (0)