Support » Plugin: Add Link to Facebook » Add a new filter on al2fb query string

  • crocro

    (@crocro)


    Hi,

    I don’t have any Pro support, but since it’s a Pull Request rather than a support request, I thought I’d post it anyway.

    It would be nice to be able to attach a filter on the query string to add custom options when calling the FB API.

    i.e., adding “$query_array = apply_filters(‘al2fb_query’, $query_array);” at line 737 of the file add-link-to-facebook-int.php

    It would make that plugin even more powerful!

    Thanks for the great work!

    https://wordpress.org/plugins/add-link-to-facebook/

Viewing 5 replies - 1 through 5 (of 5 total)
  • M66B

    (@m66b)

    Did you test this?

    M66B

    (@m66b)

    Down to WordPress version 3.2?

    crocro

    (@crocro)

    I tested it on my WP which is the latest version available (3.9.1).

    However, it’s just calling a filter on the array of parameters used when building the API query. As far as I know, filters already existed in WP 3.2 and even much sooner.

    Actually, a similar filter is called on the API URL few lines before, so I suppose the suggested change won’t break anything (“$url = apply_filters(‘al2fb_url’, $url);”).

    Thanks for the quick answer!

    M66B

    (@m66b)

    I have already added this to the development version and tested it, so it will be part of the next release.
    https://wordpress.org/plugins/add-link-to-facebook/changelog/

    crocro

    (@crocro)

    Amazing! Thank you so much!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add a new filter on al2fb query string’ is closed to new replies.