|
|
5 years ago | |
|---|---|---|
| src | 6 years ago | |
| .editorconfig | 6 years ago | |
| .gitattributes | 6 years ago | |
| .gitignore | 6 years ago | |
| LICENSE | 6 years ago | |
| README.md | 6 years ago | |
| composer.json | 5 years ago | |
| plate.php | 6 years ago | |
A theme support plugin for WordPlate.
The Plate plugin disables features in the WordPress administrator dashboard your client doesn't need. It provides helpers such as customization of the dashboard footer text and custom login form logo.
Require this package, with Composer, in the root directory of your project.
$ composer require wordplate/plate
Below is a list of handy helpers this plugins provides such as disabling menu items and dashboard widgets.
plate-disable-menuThis feature accepts an array of menu items you want to disable in the administrator dashboard.
add_theme_support('plate-disable-menu', [
'edit-comments.php', // comments
'index.php', // dashboard
'upload.php', // media
'edit.php?post_type=acf-field-group', // custom post type
'tools.php?page=wp-migrate-db', // plugin in tools
'options-general.php?page=menu_editor', // plugin in settings
'admin.php?page=theseoframework-settings', // plugin in menu root
]);
plate-disable-dashboardThis feature accepts an array of dashboard widgets you want to disable on the administrator dashboard.
add_theme_support('plate-disable-dashboard', [
'dashboard_activity',
'dashboard_incoming_links',
'dashboard_plugins',
'dashboard_primary',
'dashboard_quick_press',
'dashboard_recent_comments',
'dashboard_recent_drafts',
'dashboard_secondary',
//'dashboard_right_now',
]);
plate-disable-toolbarThis feature accepts an array of menu toolbar items you want to disable in the administrator dashboard.
add_theme_support('plate-disable-toolbar', [
'archive',
'comments',
'wp-logo',
'edit',
'appearance',
'view',
'new-content',
'updates',
'search',
]);
plate-permalinkThis feature allows you to set the default permalink structure in the theme.
add_theme_support('plate-permalink', '/%postname%/');
plate-login-logoThis feature allows you to replace the login WordPress logo with a custom one.
add_theme_support('plate-login-logo', get_theme_file_uri('assets/images/logo.png'));
plate-footer-textThis feature allows you to set a custom footer text in the WordPress administrator dashboard.
add_theme_support('plate-footer-text', 'Thank you for creating with WordPlate.');