<?php

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

return function ($chat) {
    add_action('init', array($chat, 'load_textdomain'), 0);
    add_action('admin_menu', array($chat, 'add_admin_menu'), 60);
    add_action('admin_enqueue_scripts', array($chat, 'enqueue_admin_assets'));
    add_action('admin_init', array($chat, 'check_tables'));
    add_action('wp_ajax_aieo_chat_save_content_selection', array($chat, 'ajax_save_content_selection'));
    add_action('wp_ajax_aieo_chat_save_settings', array($chat, 'ajax_save_settings'));
    add_filter('admin_footer_text', array($chat, 'aieo_chat_footer_text'), 11);
};
