'advance-menu-manager-lite&tab=about'), admin_url('index.php'))); } function welcome_pages_screen_advance_menu_manager() { add_dashboard_page( 'Advance Menu Manager Dashboard', 'Advance Menu Manager Dashboard', 'read', 'advance-menu-manager-lite', 'welcome_screen_content_advance_menu_manager' ); } function welcome_screen_advance_menu_manager_remove_menus () { remove_submenu_page( 'index.php', 'advance-menu-manager-lite' ); } function welcome_screen_content_advance_menu_manager() { $current_user = wp_get_current_user(); wp_enqueue_script( 'jquery-ui-dialog' ); wp_enqueue_style( 'wp-pointer' ); wp_enqueue_script( 'wp-pointer' ); if (!get_option('amm_free_plugin_notice_shown')) { echo '
Subscribe for latest plugin update and get notified when we update our plugin and launch new products for free!
' . __( 'Very Simple, easy, admin-friendly menu manege with this plugin which can be used for the customize menus like edit, sorting, delete, Add new menu etc' ) . '
'; return array( $prefix . 'custom_advance_menu_manager_admin_pointers' => array( 'content' => $new_pointer_content, 'anchor_id' => '#toplevel_page_woocommerce', 'edge' => 'left', 'align' => 'left', 'active' => ( ! in_array( $prefix . 'custom_advance_menu_manager_admin_pointers', $dismissed ) ) ) ); } /** * plugin_deactivation function * * This function will run when someone deactivate the plugin and all admin interface will be disabled. * * @version 1.0.0 * @author Multidots */ function plugin_deactivation() { require_once plugin_dir_path( __FILE__ ) . 'includes/classes/Class_Deactivator.php'; } register_deactivation_hook( __FILE__, 'plugin_deactivation' ); function generate_menu_template() { add_theme_page('Advance Menu Manager', 'Advance Menu Manager', 'edit_theme_options', 'advance-menu-manager', 'generate_menu_page', 5); } add_action( 'admin_menu', 'generate_menu_template' ); /** * This function runs when plugin activates. (use period) * * This function executes when plugin activates and object initialised. * * @since 1.0.0 */ function generate_menu_page() { wp_enqueue_script( 'amm_script_fancy', plugins_url( 'advance-menu-manager/includes/js/custom.js' ) ); wp_enqueue_script( 'jquery-ui-dialog' ); global $gloable_all_author_array; global $gloable_all_template_array; global $gloable_all_category_array; global $gloable_all_current_menu_id; $current_user = wp_get_current_user(); ?>Subscribe for latest plugin update and get notified when we update our plugin and launch new products for free!
'; ?> 'POST', 'timeout' => 45, 'redirection' => 5, 'httpversion' => '1.0', 'blocking' => true, 'headers' => array(), 'body' => array('user'=>array('user_email'=>$email_id,'plugin_site' => $log_url,'status' => 1,'plugin_id' => '18','activation_date'=>$cur_date)), 'cookies' => array())); update_option('amm_free_plugin_notice_shown', 'true'); } function hide_subscribe_ammfn() { $email_id= $_POST['email_id']; update_option('amm_free_plugin_notice_shown', 'true'); } ?>