Esempio n. 1
0
 /**
  * Adds a toplevel component.
  *
  * This function should be utilized when using the plugin manually.
  * Every component has an `add()` method to add subcomponents to it, however if you want to add toplevel components, use this function.
  *
  * @since 0.5.0
  * @param WPDLib\Components\Base $component the component object to add
  * @return WPDLib\Components\Base|WP_Error either the component added or a WP_Error object if an error occurred
  */
 public function add($component)
 {
     return ComponentManager::add($component);
 }