• 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' );
  • The topic ‘Filter: shared_counts_link_url Tutorial’ is closed to new replies.