# support: docs

Shared support screen for Mammoth WP plugins: wp_mail tickets with an opt-in site report.

Generated from support at release v1.1.1.

## Install

```bash
composer require mammothwp/support
```

## Usage snippets

### Quick start

```bash
composer require mammothwp/support
```

### Quick start

```php
\MammothWP\Support\Support::register_plugin( __FILE__, [
    'email' => 'support@example.com', // required: where tickets for THIS plugin go
] );
```

### Quick start

```json
{
    "email": "support@example.com",
    "docs_url": "https://example.com/docs"
}
```

### Install / integrate

```json
{
    "require": { "mammothwp/support": "^1.1" }
}
```

### Adding a report section

```php
add_filter( 'mmwp_support_report_sections', function ( array $sections ): array {
    $sections[] = new My_Plugin_Report_Section(); // implements \MammothWP\Support\Report\Section_Interface
    return $sections;
} );
```

## In these docs

- [Hooks & filters](https://mammothwp.com/docs/support/hooks/)
- [REST & Abilities](https://mammothwp.com/docs/support/rest/)
- [Command line](https://mammothwp.com/docs/support/cli/)
- [Use cases](https://mammothwp.com/docs/support/use-cases/)
