| @@ -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 and styles for this Gutenberg Block in the editor and frontend views. |
| 31 | 34 | add_action( 'convertkit_gutenberg_enqueue_scripts_editor_and_frontend', array( $this, 'enqueue_scripts' ) ); |
| 32 | 35 | add_action( 'convertkit_gutenberg_enqueue_styles_editor_and_frontend', array( $this, 'enqueue_styles' ) ); |
| 33 | 36 | |
| @@ -91,8 +94,21 @@ | ||
| 91 | 94 | */ |
| 92 | 95 | public function get_title() { |
| 93 | 96 | |
| 94 | 97 | return __( 'Kit Product', 'convertkit' ); |
| 98 | + | |
| 99 | + } | |
| 100 | + | |
| 101 | + /** | |
| 102 | + * Returns this block's plural title. | |
| 103 | + * | |
| 104 | + * @since 3.4.0 | |
| 105 | + * | |
| 106 | + * @return string | |
| 107 | + */ | |
| 108 | + public function get_title_plural() { | |
| 109 | + | |
| 110 | + return __( 'Kit Products', 'convertkit' ); | |
| 95 | 111 | |
| 96 | 112 | } |
| 97 | 113 | |
| 98 | 114 | /** |