| 1 |
<?php |
| 2 |
/** |
| 3 |
* Kit MCP Resource: Settings reference. |
| 4 |
* |
| 5 |
* @package ConvertKit |
| 6 |
* @author ConvertKit |
| 7 |
*/ |
| 8 |
|
| 9 |
/** |
| 10 |
* A Markdown reference describing what each Plugin settings group controls |
| 11 |
* (`kit://reference/settings`). |
| 12 |
* |
| 13 |
* @package ConvertKit |
| 14 |
* @author ConvertKit |
| 15 |
*/ |
| 16 |
class ConvertKit_MCP_Resource_Settings_Reference extends ConvertKit_MCP_Resource_Reference { |
| 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/reference-settings'; |
| 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://reference/settings'; |
| 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 Settings Reference', '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 __( 'What each Kit Plugin settings group controls. For current values and exact keys, read kit://settings or the kit/settings-*-get tools.', 'convertkit' ); |
| 67 |
|
| 68 |
} |
| 69 |
|
| 70 |
/** |
| 71 |
* Returns the Markdown content lines. |
| 72 |
* |
| 73 |
* @since 3.5.0 |
| 74 |
* |
| 75 |
* @return array |
| 76 |
*/ |
| 77 |
protected function get_content_lines() { |
| 78 |
|
| 79 |
return array( |
| 80 |
'# ' . __( 'Kit Plugin Settings', 'convertkit' ), |
| 81 |
'', |
| 82 |
__( 'The Plugin has three settings groups exposed over MCP. Read live values from `kit://settings`, or a single group\'s exact schema and values via its `kit/settings-<group>-get` tool; change values with `kit/settings-<group>-update`.', 'convertkit' ), |
| 83 |
'', |
| 84 |
'## ' . __( 'general', 'convertkit' ), |
| 85 |
'', |
| 86 |
__( 'The Kit account connection and site-wide defaults: the default Form displayed for each post type, and how non-inline Forms load. This is where most Form defaults are set.', 'convertkit' ), |
| 87 |
'', |
| 88 |
'## ' . __( 'broadcasts', 'convertkit' ), |
| 89 |
'', |
| 90 |
__( 'Importing Kit Broadcasts into WordPress as posts: whether importing is enabled, and the author, category and status applied to imported posts.', 'convertkit' ), |
| 91 |
'', |
| 92 |
'## ' . __( 'restrict-content', 'convertkit' ), |
| 93 |
'', |
| 94 |
__( 'Site-wide Restrict Content behaviour: the teaser shown to non-qualifying visitors, the calls to action, and how subscribers authenticate. Per-post gating is set with `kit/post-settings-update` — see `kit://reference/restrict-content`.', 'convertkit' ), |
| 95 |
); |
| 96 |
|
| 97 |
} |
| 98 |
|
| 99 |
} |
| 100 |
|