Home › Forums › Backend Issues (wp-admin) › Alter field group settings per content type › Reply To: Alter field group settings per content type
Sorry to say still no luck. My function gets executed and returns the altered field_group, but no change to the order on the editing screen. It still appears that acf/settings/load_json
hook is getting fired again afterward as the breakpoint I put in that hook gets hit after my function to alter the group.
I tried testing it with the post type check removed and it worked, so I think you are right about finding a different way to check the post type. I’ll look into that and let you know what I find out. The strange thing is that the breakpoint inside the if statement gets hit, so I assumed the post_type check was working.
Thanks again for all your help.
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.