Its not OOP. You've got 'functional' code sitting alongside 'config' settings in a dumb way.
Not to mention that we shoe-horned the function altogether into the run() on ACF.php. It should be a stand-alone static function which, possibly, pulls from a 'config only' chunk of code.
In addition, there's no example and/or usage of acf_add_options_sub_page(), which is possibly one of the most useful features of the options pages.
Same for adding an example of adding a c-type specific options page:
Not happy with it.
Its not OOP. You've got 'functional' code sitting alongside 'config' settings in a dumb way.
Not to mention that we shoe-horned the function altogether into the
run()
onACF.php
. It should be a stand-alone static function which, possibly, pulls from a 'config only' chunk of code.In addition, there's no example and/or usage of
acf_add_options_sub_page()
, which is possibly one of the most useful features of the options pages.Same for adding an example of adding a c-type specific options page:
Same for "theme" level ACF Settings: