<?php

namespace SmartPay\Framework\Concerns;
defined('ABSPATH') || exit;

trait WordPressAction
{
    public function addAction($tag, $function_to_add, $priority = 10, $accepted_args = 1)
    {
        add_action($tag, $function_to_add, $priority, $accepted_args);
    }

    public function addFilter($tag, $function_to_add, $priority = 10, $accepted_args = 1)
    {
        add_filter($tag, $function_to_add, $priority, $accepted_args);
    }
}