HEX
Server: Apache
System: Linux host35.server.ae 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
User: nokatech (2100)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/nokatech/public_html/wp-content/themes/around/inc/admin/class-around-admin.php
<?php
/**
 * Around Admin Class
 *
 * @package  storefront
 * @since    2.0.0
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

if ( ! class_exists( 'Around_Admin' ) ) :
    /**
     * The Around admin class
     */
    class Around_Admin {
        
        public function __construct() {
            add_action( 'admin_init', [ $this, 'run_once' ] );
            add_action( 'admin_init', [ $this, 'disable_redirects' ], 1 );
        }

        public function disable_redirects() {
            if ( did_action( 'elementor/loaded' ) ) {
                remove_action( 'admin_init', [ \Elementor\Plugin::$instance->admin, 'maybe_redirect_to_getting_started' ] );
            }
        } 

        public function run_once() {
            if ( get_option( 'around_admin_run_once_completed', false ) ) {
                return;
            }

            update_option( 'job_manager_enable_categories', '1' );

            do_action( 'around/admin/run_once' );

            update_option( 'around_admin_run_once_completed', true );
        }
    }

endif;

return new Around_Admin();