'ampforwp-welcome-page' ), admin_url( 'index.php' ) ) ); } // add_action( 'admin_init', 'ampforwp_welcome_screen_do_activation_redirect_parent' ); function ampforwp_welcome_screen_do_activation_redirect_parent() { include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); $amp_plugin_activation_check = is_plugin_active( 'amp/amp.php' ); // Bail if option is already set or plugin is deactivated if ( get_option( 'ampforwp_parent_plugin_check' ) || $amp_plugin_activation_check == false ) { return; } // Bail if activating from network, or bulk if ( is_network_admin() || isset( $_GET['activate-multi'] ) ) { return; } // Redirect to welcome page wp_safe_redirect( add_query_arg( array( 'page' => 'ampforwp-welcome-page' ), admin_url( 'index.php' ) ) ); update_option( 'ampforwp_parent_plugin_check', true ); } add_action('admin_menu', 'ampforwp_welcome_screen_pages'); function ampforwp_welcome_screen_pages() { add_dashboard_page( __('Welcome To AMPforWP plugin','accelerated-mobile-pages'), __('Welcome to AMP','accelerated-mobile-pages'), 'manage_options', 'ampforwp-welcome-page', 'ampforwp_welcome_screen_content' ); } function ampforwp_welcome_screen_content() { ?>
We have recommend you to go through AMP installation wizard which helps setup the Basic AMP and get started immediatly.
Run Installation WizardWe have many settings in Options Panel to help you setup the AMP perfectly to according to your taste & needs.
AMP Options Panel