• Im building a plugin, I am keeping all my functions inside a class, and when I call wp_add_dashboard_widget() function from within my class, I get error => Call to undefined function.

    That function is not even a class function, its in dashboard.php file, so including the file doesnt work either.

    Please help.

Viewing 1 replies (of 1 total)
  • It all depends on when and where you’re calling these functions and how your plug-in is interacting with WordPress’ core. Can you provide more details either here or via email (eric[at]eamann[dot]com) so I can help you try to figure it out?

Viewing 1 replies (of 1 total)
  • The topic ‘Cant access wp functions from inside my class’ is closed to new replies.