Свойство | 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 |
Méthode | 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. |
Méthode | Description | |
---|---|---|
components ( ) : array | List of registered WPDK components |
public __construct ( ) : WPDKUIComponents | ||
Résultat | WPDKUIComponents |
public static init ( ) : WPDKUIComponents | ||
Résultat | WPDKUIComponents |
public load_scripts ( boolean $print ) | ||
boolean | Whether to print the footer scripts. Default true. |
public array $enqueue_scripts | ||
Résultat | array |
public array $enqueue_styles | ||
Résultat | array |