| @@ -55,8 +55,30 @@ | ||
| 55 | 55 | |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /** |
| 59 | + * Registers this block's MCP abilities. | |
| 60 | + * | |
| 61 | + * @since 3.4.0 | |
| 62 | + * | |
| 63 | + * @param array $abilities Abilities to Register. | |
| 64 | + * @return array | |
| 65 | + */ | |
| 66 | + public function register_abilities( $abilities ) { | |
| 67 | + | |
| 68 | + return array_merge( | |
| 69 | + $abilities, | |
| 70 | + array( | |
| 71 | + 'kit/' . $this->get_name() . '-list' => new ConvertKit_MCP_Ability_Content_List( $this ), | |
| 72 | + 'kit/' . $this->get_name() . '-insert' => new ConvertKit_MCP_Ability_Content_Insert( $this ), | |
| 73 | + 'kit/' . $this->get_name() . '-update' => new ConvertKit_MCP_Ability_Content_Update( $this ), | |
| 74 | + 'kit/' . $this->get_name() . '-delete' => new ConvertKit_MCP_Ability_Content_Delete( $this ), | |
| 75 | + ) | |
| 76 | + ); | |
| 77 | + | |
| 78 | + } | |
| 79 | + | |
| 80 | + /** | |
| 59 | 81 | * Returns this block's programmatic name, excluding the convertkit- prefix. |
| 60 | 82 | * |
| 61 | 83 | * @since 1.9.6 |
| 62 | 84 | */ |
| @@ -77,8 +99,21 @@ | ||
| 77 | 99 | * |
| 78 | 100 | * @since 3.1.1 |
| 79 | 101 | */ |
| 80 | 102 | public function get_title() { |
| 103 | + | |
| 104 | + return ''; | |
| 105 | + | |
| 106 | + } | |
| 107 | + | |
| 108 | + /** | |
| 109 | + * Returns this block's plural title. | |
| 110 | + * | |
| 111 | + * @since 3.4.0 | |
| 112 | + * | |
| 113 | + * @return string | |
| 114 | + */ | |
| 115 | + public function get_title_plural() { | |
| 81 | 116 | |
| 82 | 117 | return ''; |
| 83 | 118 | |
| 84 | 119 | } |