From f9ae10af76b189852671e9bf8d96e23e0ef142af Mon Sep 17 00:00:00 2001 From: Daryll Doyle Date: Tue, 2 Apr 2024 11:34:56 +0100 Subject: [PATCH] Add Usage to comment --- .../classes/PostTypes/AbstractPostType.php | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/mu-plugins/10up-plugin/includes/classes/PostTypes/AbstractPostType.php b/mu-plugins/10up-plugin/includes/classes/PostTypes/AbstractPostType.php index f912cc7d..3a067f65 100644 --- a/mu-plugins/10up-plugin/includes/classes/PostTypes/AbstractPostType.php +++ b/mu-plugins/10up-plugin/includes/classes/PostTypes/AbstractPostType.php @@ -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 {