'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', 'Welcome to AMP', 'read', 'ampforwp-welcome-page', 'ampforwp_welcome_screen_content' ); } function ampforwp_welcome_screen_content() { ?>
Thank you so much for installing the AMPforWP plugin!
Our team works really hard to deliver good user experience to you.
We're bunch of passionate people that are dedicated towards helping our users. We will be happy to help you!
There are 3 ways to get help: