Use add_theme_page() func. in a class member function
-
I tried to write a class to set up and handle my Theme Options panels. There is more option panels, and I try to arrange them by a class with making one representative of the class to each theme option panel. Eg.:
$firstpanel = new ownPanel();
$secontpanel = new ownPanel();I have done the script and style loading with a member function, but I had an error while I tried to use add_theme_page() function in a member function of my class (this member function would call add_theme_page to create a panel, and it’d handle the saving and reset), BUT I got “Call undefined function add_theme_page()…”error
Please HELP ME , how to use add_theme_page()inside a member function of my own class!!! Thx!
- The topic ‘Use add_theme_page() func. in a class member function’ is closed to new replies.