<?php
namespace ShopyPress\Hooks;
if ( ! defined( 'ABSPATH' ) ) exit;


class HooksFactory {

    private const HOOKS_CLASSES = [
        'ActionAdminMenu',
        'ActionSettings',
        'ActionEnqueueScripts',
        'ActionCpt',
        'ActionAjax',
        'FilterCronSchedules',
        'ActionCron',
        'ActionShortcodes',
        'FilterPropertySingle',
        'ActionWPFooter'
    ];

    static function registerHooks(): void {

        foreach (self::HOOKS_CLASSES as $className) {
            $classFull = 'ShopyPress\Hooks\\' . $className;
            if (class_exists($classFull) && method_exists($classFull, 'register')) {
                $classFull::register();
            }
        }
    }
}