diff --git a/examples/custom-post-type.php b/examples/custom-post-type.php index 4b0772c1..4c2bdf06 100644 --- a/examples/custom-post-type.php +++ b/examples/custom-post-type.php @@ -1,5 +1,7 @@ 'Employee', 'fields' => [ Text::make('Title') - ->instructions('Add the employee title.') + ->helperText('Add the employee title.') ->required(), Email::make('Email address', 'email') - ->instructions('Add the employee email address.') + ->helperText('Add the employee email address.') ->required(), Text::make('Phone number', 'phone') - ->instructions('Add the employee phone number.'), + ->helperText('Add the employee phone number.'), ], 'location' => [ Location::where('post_type', 'employee'), diff --git a/examples/gutenberg-block.php b/examples/gutenberg-block.php index 78048bab..f37c1db3 100644 --- a/examples/gutenberg-block.php +++ b/examples/gutenberg-block.php @@ -1,5 +1,7 @@ [ PostObject::make('Employee') ->postTypes(['employee']) - ->returnFormat('object') + ->format('object') ], 'location' => [ Location::where('block', 'acf/employee') diff --git a/examples/options-page.php b/examples/options-page.php index 659e6fea..cd4f47c8 100644 --- a/examples/options-page.php +++ b/examples/options-page.php @@ -1,5 +1,7 @@ 'Cookie', 'fields' => [ WYSIWYGEditor::make('Text', 'cookie_text') - ->instructions('Add the cookie disclaimer text.') + ->helperText('Add the cookie disclaimer text.') ->disableMediaUpload(false) ->tabs('visual') ->required(), Text::make('Label', 'cookie_label') - ->instructions('Add the button label.') + ->helperText('Add the button label.') ->required(), ], 'location' => [ diff --git a/examples/with-extended-cpts.php b/examples/with-extended-cpts.php index ec993b28..c935713b 100644 --- a/examples/with-extended-cpts.php +++ b/examples/with-extended-cpts.php @@ -1,5 +1,7 @@ 'FAQ', 'fields' => [ WYSIWYGEditor::make('Answer') - ->instructions('Add the question answer.') + ->helperText('Add the question answer.') ->disableMediaUpload() ->tabs('visual') ->required(),