Server IP : 192.158.238.246 / Your IP : 3.145.82.96 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/jenniferflocom/www/wp-content/plugins/woocommerce/src/Admin/API/AI/ |
Upload File : |
<?php declare( strict_types = 1 ); namespace Automattic\WooCommerce\Admin\API\AI; /** * AI Endpoint base controller * * @internal */ abstract class AIEndpoint { /** * Endpoint namespace. * * @var string */ protected $namespace = 'wc-admin'; /** * Route base. * * @var string */ protected $rest_base = 'ai'; /** * Endpoint. * * @var string */ protected $endpoint; /** * Register routes. * * @param array $args Optional. Either an array of options for the endpoint, * or an array of arrays for multiple methods. Default empty array. */ public function register( $args ) { register_rest_route( $this->namespace, '/' . $this->rest_base . '/' . $this->endpoint, $args ); } /** * Return schema properties. * * @return array */ public function get_schema() { return array(); } }