Skip to content

Commit

Permalink
Added in a lsx_sharing_additional_buttons filter to allow 3rd party…
Browse files Browse the repository at this point in the history
… plugins to add additional buttons to the modal.
  • Loading branch information
krugazul committed Sep 12, 2022
1 parent 62d8935 commit 3e4aec4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Added
- Added support for sharing to Whatsapp.
- Added in a `lsx_sharing_additional_buttons` filter to allow 3rd party plugins to add additional buttons to the modal.

## [[1.2.2]](https://github.com/lightspeeddevelopment/lsx-sharing/releases/tag/1.2.2) - 2022-05-26

Expand Down
3 changes: 2 additions & 1 deletion classes/frontend/class-output.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ public function sharing_buttons( $buttons = array( 'facebook', 'twitter', 'pinte
}
}
}
$sharing_content .= '</p></div>';
$additional_buttons = apply_filters( 'lsx_sharing_additional_buttons', '', $this );
$sharing_content .= $additional_buttons . '</p></div>';
}

if ( $echo ) {
Expand Down

0 comments on commit 3e4aec4

Please sign in to comment.