*/ // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } class Amp_WP_Welcome { /** * Initialize the class and set its properties. * * @since 1.0.0 */ public function __construct() { // Action - Add Welcome Menu. add_action( 'admin_menu', array( $this, 'admin_menu' ), 10 ); /** * Classes responsible for defining welcome section. */ require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/welcome/class-amp-wp-getting-started.php'; require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/welcome/class-amp-wp-features.php'; require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/welcome/class-amp-wp-credits.php'; } /** * Add Welcome Page Under AMP WP Admin Menu. * * @since 1.0.0 */ public function admin_menu() { add_menu_page( 'AMP WP', // string $page_title. 'AMP WP', // string $menu_title. 'manage_options', // string $capability. 'amp-wp-welcome', // string $menu_slug. array( $this, 'amp_wp_welcome_tab_menu' ), // Callable $function. plugins_url( 'amp-wp/admin/images/amp-wp-icon.svg' ), // string $icon_url. 25 // int $position. ); add_submenu_page( 'amp-wp-welcome', // string $parent_slug. 'Welcome', // string $page_title. 'Welcome', // string $menu_title. 'manage_options', // string $capability. 'amp-wp-welcome' // string $menu_slug. ); } /** * Add Welcome Tab Menu. * * @Since 1.4.0 */ public function amp_wp_welcome_tab_menu() { $page = filter_input( INPUT_GET, 'page' ); ?>

Regenerate Thumbnails plugin. ' . 'After activating the plugin, go to Tools > Regenerate Thumbnails from the WP Admin sidebar and choose "Regenerate Thumbnails For All Attachments". ' . 'This will re-generate all the theme generated sizes of all your images. ', 'amp-wp' ) ); ?>

Welcome Tab Name * } */ $welcome_tabs = apply_filters( 'amp_wp_welcome_tab_menus', array() ); $count = 1; if ( $welcome_tabs ) { foreach ( $welcome_tabs as $key => $tab_name ) { $active_tab = ( 1 === $count ) ? 'active' : ''; echo '' . wp_kses_post( $tab_name ) . ''; $count++; } } ?>
Display Welcome Sections. * * @since 1.4.0 */ do_action( 'amp_wp_welcome_tab_section' ); ?>