Skip to content

Commit

Permalink
Add Usage to comment
Browse files Browse the repository at this point in the history
  • Loading branch information
darylldoyle committed Apr 2, 2024
1 parent 8e9c890 commit f9ae10a
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,31 @@

/**
* Abstract class for post types.
*
* Usage:
*
* class FooPostType extends AbstractPostType {
*
* public function get_name() {
* return 'custom-post-type';
* }
*
* public function get_singular_label() {
* return 'Custom Post'
* }
*
* public function get_plural_label() {
* return 'Custom Posts';
* }
*
* public function get_menu_icon() {
* return 'embed-post';
* }
*
* public function can_register() {
* return true;
* }
* }
*/
abstract class AbstractPostType extends Module {

Expand Down

0 comments on commit f9ae10a

Please sign in to comment.