8000 GitHub - wordplate/plate at 4.0.1
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.

wordplate/plate

Repository files navigation

Plate

plate

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.

StyleCI Total Downloads 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 such as disabling menu items and dashboard widgets.

plate-disable-menu

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

plate-disable-editor

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

plate-disable-dashboard

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

plate-disable-toolbar

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

plate-disable-tabs

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

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

plate-disable-api

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

plate-permalink

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

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

plate-login-logo

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

plate-footer-text

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

License

MIT © Vincent Klaiber

About

A theme support plugin for WordPlate

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages

0