| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/prosvasi/wp-content/plugins/wp-mail-smtp/src/Abilities/ |
Upload File : |
<?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();
}