| @@ -26,8 +26,11 @@ | ||
| 26 | 26 | |
| 27 | 27 | // Register this as a Gutenberg block in the ConvertKit Plugin. |
| 28 | 28 | add_filter( 'convertkit_blocks', array( $this, 'register' ) ); |
| 29 | 29 | |
| 30 | + // Register this block's MCP abilities. | |
| 31 | + add_filter( 'convertkit_abilities', array( $this, 'register_abilities' ) ); | |
| 32 | + | |
| 30 | 33 | // Enqueue scripts for this Gutenberg Block in the editor view. |
| 31 | 34 | add_action( 'convertkit_gutenberg_enqueue_scripts', array( $this, 'enqueue_scripts_editor' ) ); |
| 32 | 35 | |
| 33 | 36 | // Enqueue styles for this Gutenberg Block in the editor view. |
| @@ -97,8 +100,21 @@ | ||
| 97 | 100 | */ |
| 98 | 101 | public function get_title() { |
| 99 | 102 | |
| 100 | 103 | return __( 'Kit Form', 'convertkit' ); |
| 104 | + | |
| 105 | + } | |
| 106 | + | |
| 107 | + /** | |
| 108 | + * Returns this block's plural title. | |
| 109 | + * | |
| 110 | + * @since 3.4.0 | |
| 111 | + * | |
| 112 | + * @return string | |
| 113 | + */ | |
| 114 | + public function get_title_plural() { | |
| 115 | + | |
| 116 | + return __( 'Kit Forms', 'convertkit' ); | |
| 101 | 117 | |
| 102 | 118 | } |
| 103 | 119 | |
| 104 | 120 | /** |