A theme support plugin for WordPlate.
Plate let you clean up the WordPress administrator dashboard by disabling features your client doesn't use. It provides helpers to customize the dashboard footer text and the login form logo. The plugin will sanitize uploaded file names.
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.
This 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
]);
This feature accepts an array of panel boxes you want to disable when editing a post or a page in the administrator dashboard.
add_theme_support('plate-disable-editor', [
'commentsdiv',
'commentstatusdiv',
'linkadvanceddiv',
'linktargetdiv',
'linkxfndiv',
'postcustom',
'postexcerpt',
'revisionsdiv',
'slugdiv',
'sqpt-meta-tags',
'trackbacksdiv',
//'categorydiv',
//'tagsdiv-post_tag',
]);
This 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',
]);
This feature accepts an array of menu toolbar items you want to disable in the administrator dashboard.
add_theme_support('plate-disable-toolbar', [
'comments',
'wp-logo',
'edit',
'appearance',
'view',
'new-content',
'updates',
'search',
]);
This feature accepts an array of tabs you want to disable in the administrator dashboard.
add_theme_support('plate-disable-tabs', ['help', 'screen-options']);
This feature lets you disable WordPress's built in REST API if you don't want to or aren't using it.
add_theme_support('plate-disable-api');
This feature allows you to set the default permalink structure in the theme.
add_theme_support('plate-permalink', '/%postname%/');
This feature allows you to replace the login WordPress logo with a custom one.
add_theme_support('plate-login-logo', sprintf('%s/%s', get_template_directory_uri(), '/assets/images/logo.png'));
This 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.');