diff --git a/includes/Admin/Admin_Installer.php b/includes/Admin/Admin_Installer.php index 9a9446ea2..158a087b2 100644 --- a/includes/Admin/Admin_Installer.php +++ b/includes/Admin/Admin_Installer.php @@ -86,6 +86,11 @@ public function init_pages() { $dashboard_page = $this->create_page( __( 'Dashboard', 'wp-user-frontend' ), '[wpuf_dashboard]' ); $account_page = $this->create_page( __( 'Account', 'wp-user-frontend' ), '[wpuf_account]' ); $edit_page = $this->create_page( __( 'Edit', 'wp-user-frontend' ), '[wpuf_edit]' ); + + if ( class_exists( 'WPUF_User_Listing' ) ) { + $this->create_page( __( 'User Directory', 'wp-user-frontend' ), $this->get_user_directory_page_content() ); + } + // login page $login_page = $this->create_page( __( 'Login', 'wp-user-frontend' ), '[wpuf-login]' ); $post_form = $this->create_form(); @@ -185,4 +190,63 @@ public function create_reg_form() { public function create_form() { return wpuf_create_sample_form( __( 'Sample Form', 'wp-user-frontend' ), 'wpuf_forms' ); } + + /** + * Get user directory page content + * + * @since WPUF_SINCE + * + * @return string + */ + private function get_user_directory_page_content() { + return ' +