config; $settings = array( 'service.capability.edit_caps' => array( 'title' => __('Edit/Delete Capabilities', 'advanced-access-manager'), 'description' => AAM_Backend_View_Helper::preparePhrase('Allow to edit or delete any existing capability on the Capabilities tab. [Warning!] For experienced users only. Changing or deleting capability may result in loosing access to some features or even the entire website.', 'b'), 'value' => $config->get('service.capability.edit_caps') ), 'core.settings.ui.render_access_metabox' => array( 'title' => __('Show Access Controls metabox', 'advanced-access-manager'), 'description' => __('Show access controls on post, page and term edit screens, and access management tools on supported user screens. The term card previews premium controls when the add-on is unavailable.', 'advanced-access-manager'), 'value' => $config->get('core.settings.ui.render_access_metabox'), ), 'core.settings.ui.tips' => array( 'title' => __('Show UI Tooltips', 'advanced-access-manager'), 'description' => __('Display helpful tooltips and notifications on the AAM UI page to educate about existing functionality.', 'advanced-access-manager'), 'value' => $config->get('core.settings.ui.tips') ), 'core.settings.ui.error_notifications' => array( 'title' => __('Show Error Notifications', 'advanced-access-manager'), 'description' => __('Show a report popup when an AAM screen encounters an error. Error recovery messages remain visible when this is off.', 'advanced-access-manager'), 'value' => $config->get('core.settings.ui.error_notifications') ), 'core.settings.multi_access_levels' => array( 'title' => __('Multiple Roles Support', 'advanced-access-manager'), 'description' => sprintf(__('Enable support for multiple roles per use. The final access settings will be combined based on the merging preferences. For more information refer to %sMultiple Roles Support%s page.', 'advanced-access-manager'), '', ''), 'value' => $config->get('core.settings.multi_access_levels') ), 'core.settings.merge.preference' => array( 'title' => __('Default Access Settings Merging Preference', 'advanced-access-manager'), 'description' => sprintf(__('Default access settings merging preference when settings ambiguity detected. For more information refer to the %sResolving access control ambiguity in WordPress%s article.', 'advanced-access-manager'), '', ''), 'value' => $config->get('core.settings.merge.preference') === 'allow', 'valueOn' => 'allow', 'valueOff' => 'deny', 'optionOn' => __('Allow', 'advanced-access-manager'), 'optionOff' => __('Deny', 'advanced-access-manager') ), 'core.settings.xmlrpc_enabled' => array( 'title' => __('XML-RPC WordPress API', 'advanced-access-manager'), 'description' => sprintf(__('Remote procedure call (RPC) interface is used to manage WordPress website content and features. For more information check %sXML-RPC Support%s article.', 'advanced-access-manager'), '', ''), 'value' => $config->get('core.settings.xmlrpc_enabled') ), 'core.settings.restful_enabled' => array( 'title' => __('RESTful WordPress API', 'advanced-access-manager'), 'description' => sprintf(__('The RESTful interface is used to manage WordPress website content and features. For detail, refer to %sREST API handbook%s.', 'advanced-access-manager'), '', ''), 'value' => $config->get('core.settings.restful_enabled') ) ); return apply_filters('aam_settings_list_filter', $settings, 'core'); } /** * Register core settings UI * * @return void * @access public * * @version 7.0.0 */ public static function register() { AAM_Backend_Feature::registerFeature((object)array( 'uid' => 'settings-core', 'position' => 5, 'title' => __('Core Settings', 'advanced-access-manager'), 'capability' => self::ACCESS_CAPABILITY, 'type' => 'settings', 'view' => __CLASS__ )); } }