# Auto Delete Post

WordPress plugin that automatically deletes posts after a certain time.

## Installation

### Using Composer (WordPress Packagist)

```bash
composer require wpackagist-plugin/auto-delete-post
```

### Manual Installation

1. Download the plugin from the [WordPress Plugin Directory](https://wordpress.org/plugins/auto-delete-post/)
2. Extract the zip file to your `wp-content/plugins/` directory
3. Activate the plugin in the WordPress admin panel

## Development Setup

To set up the plugin for development:

1. Clone the repository
2. Run `composer install` to install dependencies
3. Activate the plugin in WordPress

### Available Scripts

- `composer test` - Run unit tests
- `composer lint` - Run code sniffer
- `composer lint-fix` - Run code sniffer and fix fixable issues
- `composer phpstan` - Run static analysis

## Usage

After activation:

1. Go to the "Auto Delete Posts" menu in your WordPress admin
2. Select which post types should have auto-delete functionality
3. Set global settings for deletion behavior
4. When editing posts, you'll see an option to set an auto-delete time

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

## License

GPL v2 or later