| @@ -351,8 +351,56 @@ | ||
| 351 | 351 | |
| 352 | 352 | } |
| 353 | 353 | |
| 354 | 354 | /** |
| 355 | + * Helper method to get registered MCP resources. | |
| 356 | + * | |
| 357 | + * @since 3.4.2 | |
| 358 | + * | |
| 359 | + * @return array Resources. | |
| 360 | + */ | |
| 361 | +function convertkit_get_resources() { | |
| 362 | + | |
| 363 | + $resources = array(); | |
| 364 | + | |
| 365 | + /** | |
| 366 | + * Registers MCP resources for the Kit Plugin. | |
| 367 | + * | |
| 368 | + * @since 3.4.2 | |
| 369 | + * | |
| 370 | + * @param array $resources Resources. | |
| 371 | + */ | |
| 372 | + $resources = apply_filters( 'convertkit_resources', $resources ); | |
| 373 | + | |
| 374 | + return $resources; | |
| 375 | + | |
| 376 | +} | |
| 377 | + | |
| 378 | +/** | |
| 379 | + * Helper method to get registered MCP prompts. | |
| 380 | + * | |
| 381 | + * @since 3.4.2 | |
| 382 | + * | |
| 383 | + * @return array Prompts. | |
| 384 | + */ | |
| 385 | +function convertkit_get_prompts() { | |
| 386 | + | |
| 387 | + $prompts = array(); | |
| 388 | + | |
| 389 | + /** | |
| 390 | + * Registers MCP prompts for the Kit Plugin. | |
| 391 | + * | |
| 392 | + * @since 3.4.2 | |
| 393 | + * | |
| 394 | + * @param array $prompts Prompts. | |
| 395 | + */ | |
| 396 | + $prompts = apply_filters( 'convertkit_prompts', $prompts ); | |
| 397 | + | |
| 398 | + return $prompts; | |
| 399 | + | |
| 400 | +} | |
| 401 | + | |
| 402 | +/** | |
| 355 | 403 | * Helper method to return the Plugin Settings Link |
| 356 | 404 | * |
| 357 | 405 | * @since 1.9.6 |
| 358 | 406 | * |