Automattic\WooCommerce\Admin\API
OnboardingProducts::register_routes()
Register routes.
Method of the class: OnboardingProducts{}
No Hooks.
Return
null
. Nothing (null).
Usage
$OnboardingProducts = new OnboardingProducts(); $OnboardingProducts->register_routes();
OnboardingProducts::register_routes() OnboardingProducts::register routes code WC 9.3.3
public function register_routes() { register_rest_route( $this->namespace, '/' . $this->rest_base . '/products', array( array( 'methods' => \WP_REST_Server::CREATABLE, 'callback' => array( $this, 'create_products' ), 'permission_callback' => array( $this, 'update_item_permissions_check' ), ), 'schema' => array( $this, 'get_item_schema' ), ) ); }