Skip to content

Commit

Permalink
make request args filterable
Browse files Browse the repository at this point in the history
  • Loading branch information
mattheu committed Jul 2, 2015
1 parent a42502e commit ea35721
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inc/class-mexp-resource-space-service.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ public function request( array $request ) {

// Build the request URL.
$api_url = add_query_arg(
array(
apply_filters( 'resourcespace_request_args', array(
'search' => sanitize_text_field( $request['params']['q'] ),
'key' => PJ_RESOURCE_SPACE_KEY,
'previewsize' => 'pre',
'prettyfieldnames' => true,
'original' => true,
'results_per_page' => 80,
'results_per_page' => PJ_RESOURCE_SPACE_RESULTS_PER_PAGE,
'page' => absint( $request['page'] ),
'restypes' => 1, // Restrict to images only.
),
) ),
sprintf( '%s/plugins/api_search/', PJ_RESOURCE_SPACE_DOMAIN )
);

Expand Down

0 comments on commit ea35721

Please sign in to comment.