PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 3.4.5
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v3.4.5
3.4.5 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 All 198 releases
convertkit / includes / mcp / abilities / resources / class-convertkit-mcp-ability-resource-landing-pages.php

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

74 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Kit MCP Ability: List Landing Pages.
4 *
5 * @package ConvertKit
6 * @author ConvertKit
7 */
8
9 /**
10 * Ability that lists every Kit Landing Page cached from the connected Kit
11 * account, returning each landing page's ID and name.
12 *
13 * Produces an ability named `kit/landing-pages-list`.
14 *
15 * @package ConvertKit
16 * @author ConvertKit
17 */
18 class ConvertKit_MCP_Ability_Resource_Landing_Pages extends ConvertKit_MCP_Ability_Resource {
19
20 /**
21 * Returns the resource slug for this ability.
22 *
23 * @since 3.4.0
24 *
25 * @return string
26 */
27 protected function get_resource() {
28
29 return 'landing-pages';
30
31 }
32
33 /**
34 * Returns the class name of the ConvertKit_Resource_* implementation
35 * backing this ability.
36 *
37 * @since 3.4.0
38 *
39 * @return string
40 */
41 protected function get_resource_class() {
42
43 return 'ConvertKit_Resource_Landing_Pages';
44
45 }
46
47 /**
48 * Returns the ability's human-readable label.
49 *
50 * @since 3.4.0
51 *
52 * @return string
53 */
54 public function get_label() {
55
56 return __( 'List Kit Landing Pages', 'convertkit' );
57
58 }
59
60 /**
61 * Returns the ability's human-readable description.
62 *
63 * @since 3.4.0
64 *
65 * @return string
66 */
67 public function get_description() {
68
69 return __( 'Lists every Kit Landing Page configured on the connected Kit account, returning each landing page\'s numeric ID and name. Use this before kit/post-settings-update when the user refers to a Landing Page by name rather than ID, to look up the corresponding numeric Landing Page ID. Landing Pages can only be assigned to WordPress Pages, not Posts or Custom Post Types.', 'convertkit' );
70
71 }
72
73 }
74