WordPress 插件,可使用单个配置文件配置 wp-admin 和应用程序状态。
Easily customize wp-admin and configure application options.
$ composer require wpackagist-plugin/intervention$ wp plugin install intervention --activateCreate config/intervention.php for Sage 10, or intervention.php inside your theme root folder and return an array.
[
],
'wp-admin.$role|$username' => [
],
];For the options, you can use dot notatation, a standard array, or a combination.
Remove components from wp-admin.
Return wp-admin.$role or wp-admin.$username
editor|author [
'common.adminbar',
],
];User Roles
allall-not-administrator (shortcut alias)administratorauthoreditorcontributorsubscriberSet application options.
wp-admin.Return application.
Tip: automate exporting a config file from the database using Tools→Intervention in the WordPress admin.
[
'general' => [
'tagline' => 'Intervention Example',
'wp-address' => 'https://example.com/wp',
'site-address' => 'https://example.com',
'admin-email' => '[email protected]',
'membership' => false,
'default-role' => 'editor',
'language' => 'en_US',
'timezone' => 'Africa/Johannesburg',
'date-format' => 'F j Y',
'time-format' => 'g:i a',
'week-starts' => 'Mon',
],
],
];暂无开放 Issues,或尚未同步最近议题。