JoeSz / Exopite-Simple-Options-Framework

Fast, easy and lightweight admin options/metabox form generator for WordPress Plugins and metaboxes.
GNU General Public License v3.0
78 stars 24 forks source link

Instead of init you can use admin_menu #30

Closed kmiskiewicz closed 4 years ago

kmiskiewicz commented 4 years ago

Hey, instead of adding the code to 'init' action you can use 'admin_menu' with priority 0. Adding to 'init' means that the code will be called also for not logged in WP users e.g. $this->loader->add_action('admin_menu', $plugin_admin, 'create_menu',0);

JoeSz commented 4 years ago

Hi :) You are absolutely right. But you mean the Plugin Boilerplate Tutorial not the Simple Options Framework,. right? Can you please create a pull request? Joe