📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-03 15:18:17
📂
/ (Root)
/
home
/
orkouolp
/
web
/
orkofarms.com
/
wp-content
/
plugins
/
wp-mail-smtp
/
src
/
Abilities
📍 /home/orkouolp/web/orkofarms.com/wp-content/plugins/wp-mail-smtp/src/Abilities
🔄 Refresh
✏️
Editing: AbilityInterface.php
Writable
<?php namespace WPMailSMTP\Abilities; use WP_Error; // phpcs:ignore WPForms.PHP.UseStatement.UnusedUseStatement /** * Contract every WP Mail SMTP ability implements. * * Concrete abilities are instantiated by {@see AbilityRegistrar} and registered * against the WordPress Abilities API on the `wp_abilities_api_init` hook. * * @since 4.9.0 */ interface AbilityInterface { /** * Get the ability slug, without the namespace prefix. * * @since 4.9.0 * * @return string */ public function get_name(); /** * Get the human-readable label. * * @since 4.9.0 * * @return string */ public function get_label(); /** * Get the human-readable description. * * @since 4.9.0 * * @return string */ public function get_description(); /** * Get the JSON Schema describing accepted input. * * @since 4.9.0 * * @return array */ public function get_input_schema(); /** * Get the JSON Schema describing the response. * * @since 4.9.0 * * @return array */ public function get_output_schema(); /** * Execute the ability with validated input. * * @since 4.9.0 * * @param mixed $input Input data validated against the input schema. * * @return array|WP_Error */ public function execute( $input ); /** * Permission gate. * * @since 4.9.0 * * @return true|WP_Error True when allowed, WP_Error otherwise. */ public function check_permission(); /** * Annotation flags surfaced to MCP / abilities consumers. * * @since 4.9.0 * * @return array */ public function get_annotations(); /** * Whether the ability is exposed via the REST API. * * @since 4.9.0 * * @return bool */ public function show_in_rest(); /** * Whether the ability is publicly listed for MCP clients. * * @since 4.9.0 * * @return bool */ public function is_mcp_public(); }
💾 Save Changes
❌ Cancel