acf-composer icon indicating copy to clipboard operation
acf-composer copied to clipboard

Add option to toggle option page visibility

Open ASDWcodes opened this issue 3 years ago • 1 comments

There are situations in which it is desirable to register an option page's fields but omit the page from the admin menu. In these situations, a developer can set show_in_menu to false, which causes the instantiated options object to skip the call it would otherwise make to acf_add_options_page.

This feature does not affect the existing expected functionality of the plugin, as show_in_menu is by default set to true.

ASDWcodes avatar May 03 '22 14:05 ASDWcodes

Thanks! Mind adding this to https://github.com/Log1x/acf-composer/blob/master/src/Console/stubs/options.full.stub ?

Log1x avatar May 04 '22 05:05 Log1x