Kostas Vrouvas Version: 1.1.7 */ // Prevent direct access to this file. if( !defined( 'ABSPATH' ) ) { exit( 'You are not allowed to access this file directly.' ); } // Styles add_action( 'admin_enqueue_scripts', 'safely_add_stylesheet_to_admin' ); function safely_add_stylesheet_to_admin() { wp_enqueue_style( 'prefix-style', plugins_url('stylesheet.css', __FILE__) ); } // Welcome screen register_activation_hook( __FILE__, 'welcome_screen_activate' ); function welcome_screen_activate() { set_transient( '_welcome_screen_activation_redirect', true, 30 ); } add_action( 'admin_init', 'welcome_screen_do_activation_redirect' ); function welcome_screen_do_activation_redirect() { // Bail if no activation redirect if ( ! get_transient( '_welcome_screen_activation_redirect' ) ) { return; } // Delete the redirect transient delete_transient( '_welcome_screen_activation_redirect' ); // Bail if activating from network, or bulk if ( is_network_admin() || isset( $_GET['activate-multi'] ) ) { return; } // Redirect to bbPress about page wp_safe_redirect( add_query_arg( array( 'page' => 'welcome-to-afi' ), admin_url( 'index.php' ) ) ); } add_action('admin_menu', 'welcome_screen_pages'); function welcome_screen_pages() { add_dashboard_page( 'Welcome To Admin Featured Images', 'Welcome To Admin Featured Images', 'read', 'welcome-to-afi', 'welcome_screen_content' ); } function welcome_screen_content() { ?>
If you like our work, consider buying us a beer or giving a rating.
Checked with 4.6.1
Version 1.1.6 includes minor improvements, more features are coming in the next updates!
Also removed the not (yet) needed settings page.