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