• Resolved mhmdsalah

    (@mhmdsalah)



    First, I want to thank you for this amazing plugin.

    My question is: I want to make some modifications to this plugin’s source code and use this modified version on my website. I want to change the way this plugin retrieves the user ID and uses something special. I’m asking just to make sure that there are no license problems with doing this. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Daniele Alessandra

    (@danielealessandra)

    Thank you for using my plugin and for your kind words!

    To address your question: All WordPress plugins, unless specified otherwise, are distributed under the GPL license. This means you are free to modify the code to your liking. However, you should be cautious about plugin updates. Future updates may overwrite your custom modifications, so you’ll need to manage these changes accordingly.

    I’m actually open to user-proposed modifications, as they can significantly improve the plugin. If you could share your specific needs with me, I might be able to assist by incorporating a hook into the plugin itself. This would allow you to achieve your desired outcome without risking loss of your modifications during updates.

    Thread Starter mhmdsalah

    (@mhmdsalah)

    Hello Daniele Alessandra, thanks for your response.

    Currently, the Da Reaction plugin identifies the user by User ID (if they are logged in) or by a token (stored in the user’s cookies).

    My use case is a little different. I’m developing a Headless WordPress App with Next.js, and I have a .NET backend that contains all our user data. So, my stack is as follows:

    • Next.js: as the frontend application.
    • .NET: as my backend with a database containing all my users’ info.
    • WordPress: as the content management system for content writers to write articles.

    I want to identify users when they like a post, but I don’t want to log my users into WordPress. So, according to the plugin’s current implementation, all my users are anonymous.

    My solution to identify my users was this: passing the User ID from my Next.js server to the Da Reaction Endpoint.

    To prevent unauthorized actions, I will add some kind of API Key that is only known to the WordPress backend and Next.js, and pass it as a header with my request along with the User ID (after verifying the user) using my Next.js server.

    I’m new to WordPress and the Headless approach. What do you think of this? Also, I’m not completely sure if the Da Reaction package plays nicely with Headless WordPress. I just played with it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Question about the plugin license’ is closed to new replies.