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-product.php +17 -0 3.3.4 → 3.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_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
@@ -77,8 +80,9 @@
77 80
78 81 /**
79 82 * This will register as:
80 83 * - a shortcode, with the name [convertkit_product].
84 + * - a shortcode, with the name [kit_product].
81 85 * - a Gutenberg block, with the name convertkit/product.
82 86 */
83 87 return 'product';
84 88
@@ -91,8 +95,21 @@
91 95 */
92 96 public function get_title() {
93 97
94 98 return __( 'Kit Product', 'convertkit' );
99 +
100 + }
101 +
102 + /**
103 + * Returns this block's plural title.
104 + *
105 + * @since 3.4.0
106 + *
107 + * @return string
108 + */
109 + public function get_title_plural() {
110 +
111 + return __( 'Kit Products', 'convertkit' );
95 112
96 113 }
97 114
98 115 /**