Hooks and filters
Who can do what
ugly_fields_capability
Filter. The capability needed to open UglyFields and build groups, blocks and options pages. The default is the one chosen in Settings → General.
add_filter( 'ugly_fields_capability', fn () => 'manage_options' );ugly_options_capability
Filter. The capability needed to use options pages, unless a page has its own rule.
add_filter( 'ugly_options_capability', fn () => 'edit_others_pages' );Did this article answer your question?
Thank you. It helps us make the documentation better. Need more help?