Skip to content

Commit

Permalink
Merge pull request #40 from i-am-chitti/additional-params-in-postrela…
Browse files Browse the repository at this point in the history
…tionship-block

Add `additionalParams` prop to PostRelationshipControl block
  • Loading branch information
junaidbhura authored Mar 1, 2024
2 parents 9443b2d + caa2b2f commit e7b6acc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/dist/blocks.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion assets/src/components/post-relationship-control/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const {
const { compose } = wp.compose;

function PostRelationshipControl( props ) {
const { postTypes, postStatus, taxonomies, filter } = props;
const { postTypes, postStatus, taxonomies, filter, additionalParams } = props;
return (
<Relationship
{ ...props }
Expand All @@ -23,6 +23,7 @@ function PostRelationshipControl( props ) {
post_status: postStatus,
search: query,
filter,
additional_params: additionalParams,
},
method: 'post',
} ).then( ( results ) => resolve( results ) );
Expand Down

0 comments on commit e7b6acc

Please sign in to comment.