Support » Plugins » geting page or post id on widget constructor

  • if a widget added at least one sidebar, is_active_widget function returns true. So, if i have two different pages and if the sidebar of one of the pages has my widget, scripts and styles of widgets are loading on the other page that doesn’t use my widget on its sidebar.

    i need to write my own function to fix that.

    Is there a way for getting page or post id from the widget consturctor?

    Thanks.

  • The topic ‘geting page or post id on widget constructor’ is closed to new replies.