Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 435 Bytes

03-updating-fields.md

File metadata and controls

13 lines (9 loc) · 435 Bytes

Updating Fields

Though typically less common, you may find yourself updating fields or sub fields from time to time. The fluent builder provides you with the update method to do just that:

use Samrap\Acf\Acf;

Acf::field('heading')->update('Hello World');
Acf::subField('content')
   ->update('Nothing is certain but death and taxes.');

Builder Methods | Macros