Description
class Pixe_Dependency{}
This class stores all styles and scripts of registered elements, as well as the elements currently in use on the page.
Methods
::get(): A static method used to retrieve or create an instance of the object.
->get_dependency(): Returns all dependencies and items currently in use. It is recommended to call this method after the wp_enqueue_scripts action.
->get_data(): For regular elements, this method returns an empty string. For grouped elements, it returns 'composite', with the composite content defined by get_default().
->register_style($slug, $function): Registers a function name that outputs the styles for a specific element or dependency.
->register_script($slug, $function): Registers a function name that outputs the scripts for a specific element or dependency.
