@see: https://engineering.hmn.md/standards/structure/#plugin-structure
This plugin adds a custom post type for books.
- Clone the repository into your
wp-content/plugins
directory - Activate the plugin via the WordPress admin interface
- Use the
Books
custom post type to add books to your site - View the books at
/books/
- View a single book at
/books/{slug}/
- Click on the subscribe button to subscribe to the book
- View the subscribers at
/wp-admin/admin.php?page=subscribers-list
- Fork the repository
- Create a new branch for your feature or changes
- Create a new issue in the repository for the feature or changes
- Create a pull request for your changes
The following improvements can make your plugin development more efficient and maintainable.
- Use classes for the plugin files.
- Autoload classes using spl_autoload_register or PSR-4 autoloading.
- Use WP PHPCS for coding standards.
- Send an email to the site admin when a new subscriber is added.
- Add a column to the books list table to show the number of subscribers.