A framework plugin for WordPlate.
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.
This feature accepts an array of menu items you want to hide in the WordPress administrator dashboard.
add_theme_support('plate-menu', [
'comments',
'dashboard',
'links',
'media',
]);
This feature accepts an array of panel boxes you want to hide when editing a post or a page in the WordPress administrator dashboard.
add_theme_support('plate-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 remove on the dashboard page.
add_theme_support(''plate-dashboard'', [
'dashboard_activity',
'dashboard_incoming_links',
'dashboard_plugins',
'dashboard_recent_comments',
'dashboard_primary',
'dashboard_quick_press',
'dashboard_recent_drafts',
'dashboard_secondary',
//'dashboard_right_now',
]);
This feature accepts an array of menu toolbar items you want to hide in the WordPress administrator dashboard.
add_theme_support('plate-toolbar', [
'comments',
'wp-logo',
'edit',
'appearance',
'view',
'new-content',
'updates',
'search',
]);
This feature accepts an array of tabs you want to hide in the WordPress administrator dashboard.
add_theme_support('plate-tabs', ['help', 'screen-options']);
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', 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', 'Thank you for creating with WordPlate.');
Plate is licensed under The MIT License (MIT).