Filter: jsps_render_without_post

apply_filters( 'jsps_render_without_post', $render, $networks, $is_shortcode, $url_to_share ) → {boolean}
Whether the buttons are rendered when there is no current post (404 page, outside of the loop…). In that case the current page URL and the document title are shared, without counters.

Parameters:

Name Type Description
$render boolean Default: true for a shortcode, a custom URL or "current page" sharing, false otherwise.
$networks array The networks asked.
$is_shortcode int 1 if called by the shortcode.
$url_to_share string permalink | siteurl | <custom_url> | null
Since:
  • 2.4.0 First version
Author:
Source:

Returns:

true to render the buttons.
Type
boolean