PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 3.4.4
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v3.4.4
3.4.4 3.4.3 3.4.2 3.4.1 3.4.0 3.3.9 3.3.8 3.3.7 3.3.6 3.3.5 3.3.4 3.3.3 3.3.2 3.3.1 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 All 197 releases
← All changes | includes/blocks/class-convertkit-block-form-trigger.php +18 -1 3.3.23.4.4 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 }
@@ -55,8 +58,9 @@
55 58
56 59 /**
57 60 * This will register as:
58 61 * - a shortcode, with the name [convertkit_formtrigger].
62 + * - a shortcode, with the name [kit_formtrigger].
59 63 * - a Gutenberg block, with the name convertkit/formtrigger.
60 64 */
61 65 return 'formtrigger';
62 66
@@ -73,8 +77,21 @@
73 77
74 78 }
75 79
76 80 /**
81 + * Returns this block's plural title.
82 + *
83 + * @since 3.4.0
84 + *
85 + * @return string
86 + */
87 + public function get_title_plural() {
88 +
89 + return __( 'Kit Form Triggers', 'convertkit' );
90 +
91 + }
92 +
93 + /**
77 94 * Returns this block's icon.
78 95 *
79 96 * @since 3.1.1
80 97 */
@@ -361,9 +378,9 @@
361 378 $this->get_css_styles( $atts ),
362 379 $this->is_block_editor_request()
363 380 );
364 381
365 - // Bail if an error occured.
382 + // Bail if an error occurred.
366 383 if ( is_wp_error( $html ) ) {
367 384 if ( $settings->debug_enabled() ) {
368 385 return '<!-- ' . $html->get_error_message() . ' -->';
369 386 }