# hostinger/3.0.67/includes/Admin/Hooks.php

Hostinger Tools, version 3.0.67. 61 lines.

- Page: https://pluginprobe.com/plugins/hostinger/3.0.67/code/includes/Admin/Hooks.php
- Raw: https://pluginprobe.com/plugins/hostinger/3.0.67/raw/includes/Admin/Hooks.php
- Modified: 2025-09-15T12:05:24+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/hostinger/3.0.67/code/includes/Admin/Hooks.php#L10-L20`.

```php
<?php

namespace Hostinger\Admin;

use Hostinger\Helper;
use Hostinger\WpHelper\Utils;

defined( 'ABSPATH' ) || exit;

class Hooks {
    /**
     * @var Helper
     */
    private Helper $helper;

    /**
     * @var Utils
     */
    private Utils $utils;

    public function __construct( $utils ) {
        $this->helper = new Helper();
        $this->utils  = $utils ?? new Utils();
        add_action( 'admin_footer', array( $this, 'rate_plugin' ) );
        add_filter( 'wp_kses_allowed_html', array( $this, 'custom_kses_allowed_html' ), 10, 1 );
    }

    /**
     * @return void
     */
    public function rate_plugin(): void {
        $admin_path = parse_url( admin_url(), PHP_URL_PATH );

        if ( ! $this->utils->isThisPage( $admin_path . 'admin.php?page=' . Menu::MENU_SLUG ) ) {
            return;
        }

        require_once HOSTINGER_ABSPATH . 'includes/Admin/Views/Partials/RateUs.php';
    }



    public function custom_kses_allowed_html( $allowed ) {
        $allowed['svg']  = array(
            'xmlns'   => true,
            'width'   => true,
            'height'  => true,
            'viewBox' => true,
            'fill'    => true,
            'style'   => true,
            'class'   => true,
        );
        $allowed['path'] = array(
            'd'    => true,
            'fill' => true,
        );

        return $allowed;
    }
}

```
