Support Center

PixeBuilder Support Center
Support Center>Pixe_Dependency
Updated On: January 21, 2026

Pixe_Dependency

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.

Related

Is This Article Helpful?

We value your feedback! Let us know if this article helped you:

Still need help? Contact Us for further assistance.

Table Of Contents