Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function plugin_admin_exist() {
- add_menu_page('plugin', 'plugin', 'manage_options', 'plugin', 'plugin_Dashboard', plugins_url( 'plugin/images/icon.png' ));
- } add_action('admin_menu', 'plugin_admin_exist');
- function admin_Dashboard() {ob_start();
- require ( plugin_dir_path( __FILE__ ) . 'dashboard.php'); }
- if (get_option('Plugin_Master_Run')) {
- $AdminOption = get_option('Plugin_Master_Run');
- }else {
- add_option('Plugin_Master_Run', array(
- 'plugin_profile' => '',
- 'plugin_googleFont' => '',
- 'plugin_browserIcon' => '',
- 'plugin_regularMobile' => '',
- 'plugin_retinaMobile' => '',
- 'plugin_logo' => '',
- 'plugin_retinaLogo' => ''
- ));
- }
- <input name="Admin_profile" value="<?php echo $AdminOption['plugin_profile']; ?>" type="text"/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement