Skip to content

Conversation

mysyfy
Copy link

@mysyfy mysyfy commented Jun 21, 2019

Return response object for getting custom response header returned by WP Rest API

Return response object for getting custom response header returned by WP Rest API
* @return array
*/
public function get($id = null, array $params = null)
public function get($id = null, array $params = null, $lJSONResponse = true)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bool param is antipattern. Better make a separate method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants