| Server IP : 109.122.246.182 / Your IP : 216.73.216.59 Web Server : Apache/2 System : Linux host3.abrin.cloud 6.1.0-52-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.180-1 (2026-08-03) x86_64 User : sinah533 ( 1085) PHP Version : 8.1.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/sinah533/public_html/wp-content/plugins/elementor/modules/mcp/abilities/ |
Upload File : |
<?php
namespace Elementor\Modules\Mcp\Abilities;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
abstract class Abstract_Ability {
abstract protected function get_ability_id(): string;
abstract protected function get_definition(): Ability_Definition;
abstract public function execute( $input = [] );
public function register(): void {
$definition = $this->get_definition()->to_array();
$definition['execute_callback'] = [ $this, 'execute' ];
wp_register_ability( $this->get_ability_id(), $definition );
}
}