PATH:
home
/
lab2454c
/
archfort.com
/
wp-content
/
plugins
/
wp-user-frontend
/
admin
<?php /** * The welcome class after install * * @since 2.6.0 */ class WPUF_Admin_Welcome { public function __construct() { add_action( 'admin_menu', [ $this, 'register_menu' ] ); add_action( 'admin_head', [ $this, 'hide_menu' ] ); // add_action( 'admin_init', array( $this, 'redirect_to_page' ), 9999 ); } /** * Register the admin menu to setup the welcome message * * @return void */ public function register_menu() { add_dashboard_page( __( 'Welcome to WP User Frontend', 'wp-user-frontend' ), __( 'Welcome to WP User Frontend', 'wp-user-frontend' ), 'manage_options', 'wpuf-welcome', [ $this, 'welcome_page' ] ); } /** * Hide the menu as we don't want to show the welcome page in admin menu * * @return void */ public function hide_menu() { remove_submenu_page( 'index.php', 'wpuf-welcome' ); } /** * Redirect to the welcome page once the plugin is installed * * @return void */ public function redirect_to_page() { if ( !get_transient( 'wpuf_activation_redirect' ) ) { return; } delete_transient( 'wpuf_activation_redirect' ); // Only do this for single site installs. if ( is_network_admin() || isset( $_GET['activate-multi'] ) ) { return; } wp_safe_redirect( admin_url( 'index.php?page=wpuf-welcome' ) ); exit; } /** * Render the welcome page * * @return void */ public function welcome_page() { require_once WPUF_ROOT . '/views/welcome-page.php'; } }
[-] class-admin-welcome.php
[edit]
[-] class-tools.php
[edit]
[-] class-admin-subscription.php
[edit]
[-] transactions.php
[edit]
[+]
..
[-] template-post.php
[edit]
[-] template.php
[edit]
[-] class-admin-settings.php
[edit]
[-] promotion.php
[edit]
[+]
form-builder
[-] settings-options.php
[edit]
[-] post-forms-list-table.php
[edit]
[-] post-forms-list-table-view.php
[edit]
[-] posting.php
[edit]
[-] subscribers.php
[edit]
[-] tools.php
[edit]
[-] installer.php
[edit]
[-] form-template.php
[edit]
[-] form.php
[edit]
[-] premium.php
[edit]
[-] form-handler.php
[edit]
[+]
html