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!
🚀 This week’s session of ACF Chat Fridays dips into the preliminary results of our first ever user survey. Don’t miss it! https://t.co/3UtvQbDwNm pic.twitter.com/kMwhaJTkZc— Advanced Custom Fields (@wp_acf) May 9, 2023
© 2023 Advanced Custom Fields.