• I want re-use the existing great functionalities in a chat plugin, so that every time a user is pasting a amazon http link to a specific product, this link is routed though this plugin to generate a affiliate link with a specific ID.
    Where can I find the hook / API to do this?

    • This topic was modified 2 years, 5 months ago by berton2912.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author miunosoft

    (@miunosoft)

    Hi,

    It is hard to tell which hook your chat plugin uses.

    For regular posts, there is the the_content filter hook. And the Link Converter feature of this plugin allows you to automatically insert your own Amazon Associates tags to Amazon product links in posts and comments and some other areas that apply WordPress filter hooks.

    To see how it works,

    1. Add your Amazon Associates tag via Dashboard -> Auto Amazon Links -> Settings.
    2. Enable Link Converter via Dashboard -> Auto Amazon Links -> Tools -> Link Converter.
    3. For a test, create a post by pasting a plain Amazon product link. Then check if the URL is modified.

    To modify post contents, the the_content filter hook is used. To do similar things to your chat inputs, you need to find the filter hook that your chat plugin uses. Then enter the filter hook name in the Custom Filter Hooks text area field of the Links Converter section.

    Thread Starter berton2912

    (@berton2912)

    Super! Thx. I’ll try this way. Thanks so much for your support

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘API call filter links’ is closed to new replies.