Home › Forums › ACF PRO › Widget instance title as a custom field › Reply To: Widget instance title as a custom field
Hi @vasili
In the update function in your custom widget class, I believe you can get the posted data by using the $_POST
variable like this:
$instance['title'] = $_POST['acf']['field_123456789abc'];
Where ‘field_123456789abc’ is the field key.
Hope this helps 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.