Cant access wp functions from inside my class (2 posts)

  1. saggybawlz
    Posted 5 years ago #

    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.

  2. Eric Mann
    Posted 5 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.