OOP Plugin and Menu – Call to undefined function register_setting()
They are undefined because the functions don’t exist right when plugins (or themes) are loaded — the admin area includes have not happened yet. If you want to register settings fields it’s best to hook into admin_init to do so. In short, you can fix your class by doing this: <?php class mySettings { public … Read more