data ) ) { $admin_user = $user_obj->data; } else { $admin_user = false; } $wp_site_url = esc_url( get_site_url() ); if ( ! $admin_user ) { $alert = true; $email = wp_get_current_user()->data->user_email; $user = get_user_by( 'email', $email )->data; } else { $email = $admin_email; $user = get_user_by( 'email', $email )->data; } $user_info = wp_json_encode( $user ); $params = array( 'user_info' => $user_info, 'wp_site_url' => $wp_site_url, 'wp_email' => $email, 'admin_email' => $admin_email, 'alert' => $alert, ); wp_localize_script( 'admin_init', 'params', $params ); } $slip_izooto = filter_input( INPUT_POST, 'slipIzooto' ); if ( isset( $slip_izooto ) && is_admin() ) { if ( 'reset' === sanitize_text_field( $slip_izooto ) ) { $izooto_op['url'] = ''; $izooto_op['uid'] = ''; $izooto_op['pid'] = ''; $izooto_op['cdn'] = ''; $izooto_op['sw'] = ''; $izooto_op['gcm'] = ''; $izooto_op['token'] = ''; update_option( 'izooto-settings', $izooto_op ); } } if ( ! function_exists( 'izooto_menu' ) ) { /** * Function to add izooto optin in menu. */ function izooto_menu() { $page_title = 'iZooto'; $menu_title = 'iZooto'; $capability = 'manage_options'; $menu_slug = 'izooto-configuration'; $function = 'izooto_fn'; $icon_url = IZOOTO_BASE_URL . 'assets/images/icon2.png'; add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function, $icon_url ); } } if ( ! function_exists( 'izooto_fn' ) ) { /** * Function to add header section in admin page */ function izooto_fn() { $opfunction = get_option( 'izooto-settings' ); ?>

Enable Web Push on your WordPress website

edit
  1. Log in to your existing iZooto account or create a new iZooto account.
  2. Go to Settings > Setup > Install using Plugins. Copy the iZooto ID & paste it in the field above.