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
convertkit / includes / mcp / resources / class-convertkit-mcp-resource-landing-pages.php

class-convertkit-mcp-resource-landing-pages.php in Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages 3.4.4, at includes/mcp/resources/class-convertkit-mcp-resource-landing-pages.php

84 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Kit MCP Resource: Landing Pages.
4 *
5 * @package ConvertKit
6 * @author ConvertKit
7 */
8
9 /**
10 * Exposes the Kit Landing Pages on the connected account as an MCP Resource
11 * (`kit://landing-pages`), mirroring the `kit/landing-pages-list` tool.
12 *
13 * @package ConvertKit
14 * @author ConvertKit
15 */
16 class ConvertKit_MCP_Resource_Landing_Pages extends ConvertKit_MCP_Resource_List {
17
18 /**
19 * Returns the resource name.
20 *
21 * @since 3.5.0
22 *
23 * @return string
24 */
25 public function get_name() {
26
27 return 'kit/landing-pages';
28
29 }
30
31 /**
32 * Returns the resource URI.
33 *
34 * @since 3.5.0
35 *
36 * @return string
37 */
38 public function get_uri() {
39
40 return 'kit://landing-pages';
41
42 }
43
44 /**
45 * Returns the resource label.
46 *
47 * @since 3.5.0
48 *
49 * @return string
50 */
51 public function get_label() {
52
53 return __( 'Kit Landing Pages', 'convertkit' );
54
55 }
56
57 /**
58 * Returns the resource description.
59 *
60 * @since 3.5.0
61 *
62 * @return string
63 */
64 public function get_description() {
65
66 return __( 'The Kit Landing Pages on the connected account, as JSON (id, name). Read this to map a Landing Page name to its numeric ID before configuring settings.', 'convertkit' );
67
68 }
69
70 /**
71 * Returns the backing ability class.
72 *
73 * @since 3.5.0
74 *
75 * @return string
76 */
77 protected function get_ability_class() {
78
79 return 'ConvertKit_MCP_Ability_Resource_Landing_Pages';
80
81 }
82
83 }
84