Property | Type | Description | |
---|---|---|---|
$components | array | List of components | |
$enqueue_scripts | array | List of scripts handle to load and concat with new WPDK wpdk-load-scripts-php | |
$enqueue_styles | array | List of styles handle to load and concat with new WPDK wpdk-load-styles-php |
Method | Description | |
---|---|---|
__construct ( ) : WPDKUIComponents | Create an instance of WPDKUIComponents class | |
enqueue ( string | array $component_handles ) | Perform an enqueue of scripts and styles of a one or more components | |
init ( ) : WPDKUIComponents | Return a singleton instance of WPDKUIComponents class | |
load_scripts ( boolean $print ) | Filter whether to print the footer scripts. | |
load_styles ( ) | Fires in for all admin pages. |
Method | Description | |
---|---|---|
components ( ) : array | List of registered WPDK components |
public __construct ( ) : WPDKUIComponents | ||
return | WPDKUIComponents |
public static init ( ) : WPDKUIComponents | ||
return | WPDKUIComponents |
public load_scripts ( boolean $print ) | ||
boolean | Whether to print the footer scripts. Default true. |
public array $enqueue_scripts | ||
return | array |
public array $enqueue_styles | ||
return | array |