Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • wp_get_sidebars_widgets is an internal function and you can't use it in your code directly. if you know the widget class there is a better solution: stackoverflow.com/a/9219730/4110112 Commented Jun 29, 2020 at 6:08
  • @DenPat You CAN use it in code directly. And your suggested solution does not work for me Commented Jun 30, 2020 at 15:25
  • Please check the codex: developer.wordpress.org/reference/functions/… You should not use that function when codex says it, we should not do it. Commented Jul 1, 2020 at 8:29
  • @DenPat But you can use it, and wordpress gives you that ability. In codex not pointed that you shouldn't use it, just being told "is not intended for use by plugin or theme developers". Please, be precise in expressions :) Commented Jul 2, 2020 at 18:28
  • 1
    @DenPat not, it's not directly translated as shouldn't. I'm completely disagree with you. You can interpret words like you want. My interpretation is: not recommended but allowed to use. I will edit the post to aware users about it Commented Jul 3, 2020 at 11:02