Home › Forums › Add-ons › Gallery Field › Extend Class acf_field_gallery render_field() function › Reply To: Extend Class acf_field_gallery render_field() function
As far as I know you cannot extend the field types. Well, you could probably extend the class, but since ACF will not instantiate the new class it will you will not be able to override functions in the gallery field class because ACF will be calling the methods in it’s field object and not yours. To to this you would need to create a custom field type https://www.advancedcustomfields.com/resources/creating-a-new-field-type/.
What is it that you want to change about the gallery field?
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.