Automattic\WooCommerce\Admin\API
Experiments::register_routes()
Register routes.
Метод класса: Experiments{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Experiments = new Experiments(); $Experiments->register_routes();
Код Experiments::register_routes() Experiments::register routes WC 9.8.1
public function register_routes() { register_rest_route( $this->namespace, '/' . $this->rest_base . '/assignment', array( array( 'methods' => \WP_REST_Server::READABLE, 'callback' => array( $this, 'get_assignment' ), 'permission_callback' => array( $this, 'get_item_permissions_check' ), ), 'schema' => array( $this, 'get_public_item_schema' ), ) ); }