WC_REST_Paypal_Standard_Controller::register_routes
Register the routes for PayPal Standard REST API requests.
Method of the class: WC_REST_Paypal_Standard_Controller{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_REST_Paypal_Standard_Controller = new WC_REST_Paypal_Standard_Controller(); $WC_REST_Paypal_Standard_Controller->register_routes();
WC_REST_Paypal_Standard_Controller::register_routes() WC REST Paypal Standard Controller::register routes code WC 10.3.6
public function register_routes() {
register_rest_route(
$this->namespace,
'/' . $this->rest_base . '/update-shipping',
array(
'methods' => WP_REST_Server::CREATABLE,
'callback' => array( $this, 'process_shipping_callback' ),
'permission_callback' => '__return_true',
)
);
}