<commit_before># Plate

> A theme support plugin for [WordPlate](https://wordplate.github.io).

[![StyleCI](https://styleci.io/repos/53593562/shield?style=flat)](https://styleci.io/repos/53593562)
[![Latest Version](https://img.shields.io/github/release/wordplate/plate.svg?style=flat)](https://github.com/wordplate/plate/releases)
[![License](https://img.shields.io/packagist/l/wordplate/plate.svg?style=flat)](https://packagist.org/packages/wordplate/plate)

## Installation

Require this package, with [Composer](https://getcomposer.org/), in the root directory of your project.

```bash
composer require wordplate/plate
```

## Theme Support

Below is a list of handy helpers this plugins provides.

#### `plate-menu`

This feature accepts an array of slugs for menu items you want to hide in the WordPress administrator dashboard.

```php
add_theme_support('plate-menu', [
    'edit-comments.php', // comments
    'index.php', // dashboard
    'link-manager.php', // links
    'upload.php', // 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.

```php
add_theme_support('plate-editor', [
    'commentsdiv',
    'commentstatusdiv',
    'linkadvanceddiv',
    'linktargetdiv',
    'linkxfndiv',
    'postcustom',
    'postexcerpt',
    'revisionsdiv',
    'slugdiv',
    'sqpt-meta-tags',
    'trackbacksdiv',
    //'categorydiv',
    //'tagsdiv-post_tag',
]);
```

#### `plate-dashboard`
<commit_msg>Update example with newly added menu removal, removed now non-existent 'link-manager.php' from example<commit_after># Plate

> A theme support plugin for [WordPlate](https://wordplate.github.io).

[![StyleCI](https://styleci.io/repos/53593562/shield?style=flat)](https://styleci.io/repos/53593562)
[![Latest Version](https://img.shields.io/github/release/wordplate/plate.svg?style=flat)](https://github.com/wordplate/plate/releases)
[![License](https://img.shields.io/packagist/l/wordplate/plate.svg?style=flat)](https://packagist.org/packages/wordplate/plate)

## Installation

Require this package, with [Composer](https://getcomposer.org/), in the root directory of your project.

```bash
composer require wordplate/plate
```

## Theme Support

Below is a list of handy helpers this plugins provides.

#### `plate-menu`

This feature accepts an array of slugs for menu items you want to hide in the WordPress administrator dashboard.

```php
add_theme_support('plate-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-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.

```php
add_theme_support('plate-editor', [
    'commentsdiv',
    'commentstatusdiv',
    'linkadvanceddiv',
    'linktargetdiv',
    'linkxfndiv',
    'postcustom',
    'postexcerpt',
    'revisionsdiv',
    'slugdiv',
    'sqpt-meta-tags',
    'trackbacksdiv',
    //'categorydiv',
    //'tagsdiv-post_tag',
]);
```

#### `plate-dashboard`

{'fraction_non_alphanumeric': 0.15638963360142985, 'fraction_numerical': 0.009532320524277629, 'mean_word_length': 4.214285714285714, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2903727', 'n_tokens_mistral': 1159, 'n_tokens_neox': 1056, 'n_words': 251}