Skip to content

puredazzle/plate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plate

A framework plugin for WordPlate.

Latest Version License

Installation

Require this package, with Composer, in the root directory of your project.

composer require wordplate/plate

Theme Support

Below is a list of handy helpers this plugins provides.

plate-menu

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',
]);

plate-editor

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',
]);

plate-dashboard

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',
]);

plate-toolbar

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',
]);

plate-tabs

This feature accepts an array of tabs you want to hide in the WordPress administrator dashboard.

add_theme_support('plate-tabs', ['help', 'screen-options']);

plate-permalink

This feature allows you to set the default permalink structure in the theme.

add_theme_support('plate-permalink', '/%postname%/');

plate-login

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'));

plate-footer

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.');

License

Plate is licensed under The MIT License (MIT).

About

A framework plugin for WordPlate

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%