###Step 1: Install XCode
Check if the full Xcode package is already installed:
$ xcode-select -p
If you see:
/Applications/Xcode.app/Contents/Developer
add_action( 'rest_api_init', 'custom_api_endpoints' ); | |
function custom_api_endpoints() { | |
/** | |
* Handle Payment Method request. | |
*/ | |
register_rest_route( 'wc/v2', 'payment', array( | |
'methods' => 'POST', | |
'callback' => 'custom_payment_endpoint_handler', |
###Step 1: Install XCode
Check if the full Xcode package is already installed:
$ xcode-select -p
If you see:
/Applications/Xcode.app/Contents/Developer