WPDKUIComponents::__construct PHP 메소드

__construct() 공개 메소드

Create an instance of WPDKUIComponents class
public __construct ( ) : WPDKUIComponents
리턴 WPDKUIComponents
    public function __construct()
    {
        // Store the components
        $this->components = $this->components();
        // Fires in <head> for all admin pages.
        // Use priority 100 in order to load all registered CSS from view controller.
        add_action('admin_head', array($this, 'load_styles'), 100);
        // Fires before styles in the $handles queue are printed.
        // Use priority 100 in order to load all registered CSS from view controller.
        add_action('wp_head', array($this, 'load_styles'), 100);
        // Prints any scripts and data queued for the footer admin and frontned.
        add_filter('print_footer_scripts', array($this, 'load_scripts'));
    }