# timetics/1.0.16/core/staffs/onboard.php

Timetics – Appointment Booking Calendar &amp; Scheduling, version 1.0.16. 52 lines.

- Page: https://pluginprobe.com/plugins/timetics/1.0.16/code/core/staffs/onboard.php
- Raw: https://pluginprobe.com/plugins/timetics/1.0.16/raw/core/staffs/onboard.php
- Modified: 2024-01-03T04:11:06+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/timetics/1.0.16/code/core/staffs/onboard.php#L10-L20`.

```php
<?php
/**
 * Staff Onboard Class
 *
 * @package Timetics
 */
namespace Timetics\Core\Staffs;

use Timetics\Utils\Singleton;

/**
 * Onboard Class
 */
class Onboard {
    use Singleton;

    /**
     * Initialize the class
     *
     * @return  void
     */
    public function init() {
        add_action( 'admin_menu', [ $this, 'add_page' ] );
        add_action( 'admin_init', [ $this, 'setup_onboard_page' ] );
    }

    /**
     * Add dashboard page for staff onboard
     *
     * @return  void
     */
    public function add_page() {
        add_dashboard_page( '', '', 'manage_timetics', 'staff-onboard', '' );
    }

    /**
     * Setup onboard page  template
     *
     * @return  void
     */
    public function setup_onboard_page() {
        $page = isset( $_GET['page'] ) ? sanitize_text_field( $_GET['page'] ) : '';

        if ( 'staff-onboard' !== $page ) {
            return;
        }
        ob_start();
        include_once TIMETICS_PLUGIN_DIR . '/templates/staff/onboard.php';
        exit();
    }
}

```
