← All changes
|
includes/blocks/class-convertkit-block-form-trigger.php
+16
-0
3.3.3
→
3.4.3
View file →
| @@ -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_styles_editor_and_frontend', array( $this, 'enqueue_styles' ) ); |
| 32 | 35 | |
| 33 | 36 | } |
| @@ -69,8 +72,21 @@ | ||
| 69 | 72 | */ |
| 70 | 73 | public function get_title() { |
| 71 | 74 | |
| 72 | 75 | return __( 'Kit Form Trigger', 'convertkit' ); |
| 76 | + | |
| 77 | + } | |
| 78 | + | |
| 79 | + /** | |
| 80 | + * Returns this block's plural title. | |
| 81 | + * | |
| 82 | + * @since 3.4.0 | |
| 83 | + * | |
| 84 | + * @return string | |
| 85 | + */ | |
| 86 | + public function get_title_plural() { | |
| 87 | + | |
| 88 | + return __( 'Kit Form Triggers', 'convertkit' ); | |
| 73 | 89 | |
| 74 | 90 | } |
| 75 | 91 | |
| 76 | 92 | /** |