Support » Plugin: Shared Counts - Social Media Share Buttons » Filter: shared_counts_link_url Tutorial

  • If you need the entire URL including query string, you can do that using the filter:

    /**
     * Add query string to share links
     *
     * @param string $link
     * @return string
     */
    function dig_full_share_url_share_link($url) {
        return $url . urlencode("?" . ($_SERVER['QUERY_STRING']));
    }
    add_filter( 'shared_counts_link_url', 'dig_full_share_url_share_link' );
  • You must be logged in to reply to this topic.