Filter: jsps_share_api_data

apply_filters( 'jsps_share_api_data', $data, $post ) → {array}
Data given to the browser Share API (navigator.share()) by the Share API button.

Parameters:

Name Type Description
$data array The data shared.

Properties

Name Type Description
$data['title'] string The title (plain text).
$data['text'] string The text (plain text).
$data['url'] string The URL shared (the post URL, or the current page URL).
$post object The WP Post object (or null).
Since:
  • 2.4.0 First version
Author:
Source:

Returns:

The data shared.
Type
array