-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use new "Deactivate License" endpoint for deactivating licenses on WPJMCOM #2585
Conversation
if ( ! is_array( $response ) || ! array_key_exists( 'success', $response ) ) { | ||
return false; | ||
} | ||
return $response; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about adding some handling here to return the same format that we have for errors here, like we have on WPJMCOM for maximum compatibility.
However, I decided to just return false
here whenever success
isn't present on the $response
because I think it matches the return value of the method more.
97dd9ae
to
aced50f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Part of #2417
Changes proposed in this Pull Request
WP_Job_Manager_Helper_API
Testing instructions
On a WPJM installation based on this version of the plugin: