Support » Plugin: Elementor Page Builder » How to access and control elementor widgets via PHP ?

  • Resolved noobron


    Hello everyone, I am a beginner in WordPress and I have been trying to develop my first project. For this project I am using this plugin. And after gettinga a bit familar with it, I realized that I am unable to find a proper way to add functionality to any elementor widget of the pages edited by the plugin.

    For ex : Suppose if I am trying to display ratings (out of 5 stars) using the “Star Rating” widget, then here I am not able to find any way to retrieve the data from a database and assign the proper ratings over the widget using this data (I know how to retrieve the data from the db but the task of using this data here is the main problem).

    I have already tried to search over this problem but haven’t found any proper example covering any thing like this.

    It would be really helpful if someone could provide solution in a brief manner on how solve this issue.

    PS : I know it sounds a bit dumb but is there any way through which I could could represent the soluton in my php script for any specific page having this thing with elementor widgets?

    Thank you for reading!

Viewing 5 replies - 1 through 5 (of 5 total)
  • I don’t think this is a common thing that Elementor users tend to do, so there probably aren’t any instructions out there for how to do that. Perhaps will help.

    Honestly, I’m not really clear on why you are trying to do this, but in any case, I hope the developers area will be of use.

    Hi Noobron,

    I may misinterpret your question, but I will give it a try.

    Those stars in Elementor widgets are just stars, so you can show those and set the ratings yourself, without actual reviews.

    Could you tell us how you retrieve reviews on this site?

    If you are retrieving them on your site, a plugin like this one: will show the stars automatically.

    However, it is recommended to retrieve reviews on independent third party sites, where you can not edit, delete or write reviews yourself. (Google reviews, Facebook reviews or paid sites that do this). Those reviews are usually more trust worthy to your visitors.

    Does this make sense?

    First of all, thank you all for your replies.
    I don’t think I was clear enough while expressing the issue. Basically I just want to know how I could make any elementor widget to be dynamic such that I could control them from scripts (preferably PHP).
    As far as I have learnt , I am only able to add , edit or delete any widget using elementor’s editor. And that’s just it. I don’t know how to make changes to any components of any widget (or the widget itself) when I am viewing the website. Just want to know how I could make the widget functional towards user input for example : a button (an elementor widget) which directs the user to some other page of the website or do some other task on getting clicked by the user.

    Once again thank you all for the fast responses.


    I am still not sure about the controle using PHP but simply adding a url to a button or example can be done like this:

    I just came accross PHP hooks for elementor. Are those something which I could use to add or change PHP code associated with any elementor widget ?
    Or can anyone tell me what are those used for ?

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