Support » Plugin: Simple Share Buttons Adder » Filter to edit the URL that is used for the shares

  • Resolved RogierLankhorst



    When changing a site to https, the shares are usually lost. This can be fixed by retrieving the shares for the http url. To do this, A filter would be needed which can be used to change to url to http if required.

    As far as I can see the URL is retrieved with the get_permalink() function but there is no filter afterward that can be used. Using the WordPress core permalink filter would change all URL’s to http, that WordPress outputs, which is not what I want.

    If a filter could be added which can be used to do this, that would be great. For example, in line 172 of class-buttons.php:
    $url_current_page = apply_filters( 'ssba_url_current_page' , $url_current_page);

    Is it possible to add this line to the code? I think as more and more people are switching to SSL this might be of value for a lot of users.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.