original_string: public function loadRegisteredTemplates()
      {
          foreach ($this->callbacks as $callback) {
              $callback($this);
          }
  
          $plugins = PluginManager::instance()->getPlugins();
          foreach ($plugins as $pluginId => $pluginObj) {
              $layouts = $pluginObj->registerMailLayouts();
              if (is_array($layouts)) {
                  $this->registerMailLayouts($layouts);
              }
  
              $templates = $pluginObj->registerMailTemplates();
              if (is_array($templates)) {
                  $this->registerMailTemplates($templates);
              }
  
              $partials = $pluginObj->registerMailPartials();
              if (is_array($partials)) {
                  $this->registerMailPartials($partials);
              }
          }
      }
code: public function loadRegisteredTemplates()
      {
          foreach ($this->callbacks as $callback) {
              $callback($this);
          }
  
          $plugins = PluginManager::instance()->getPlugins();
          foreach ($plugins as $pluginId => $pluginObj) {
              $layouts = $pluginObj->registerMailLayouts();
              if (is_array($layouts)) {
                  $this->registerMailLayouts($layouts);
              }
  
              $templates = $pluginObj->registerMailTemplates();
              if (is_array($templates)) {
                  $this->registerMailTemplates($templates);
              }
  
              $partials = $pluginObj->registerMailPartials();
              if (is_array($partials)) {
                  $this->registerMailPartials($partials);
              }
          }
      }
code_tokens: public function loadRegisteredTemplates ( ) { foreach ( $ this -> callbacks as $ callback ) { $ callback ( $ this ) ; } $ plugins = PluginManager :: instance ( ) -> getPlugins ( ) ; foreach ( $ plugins as $ pluginId => $ pluginObj ) { $ layouts = $ pluginObj -> registerMailLayouts ( ) ; if ( is_array ( $ layouts ) ) { $ this -> registerMailLayouts ( $ layouts ) ; } $ templates = $ pluginObj -> registerMailTemplates ( ) ; if ( is_array ( $ templates ) ) { $ this -> registerMailTemplates ( $ templates ) ; } $ partials = $ pluginObj -> registerMailPartials ( ) ; if ( is_array ( $ partials ) ) { $ this -> registerMailPartials ( $ partials ) ; } } }
docstring: Loads registered mail templates from modules and plugins
  @return void
docstring_tokens: Loads registered mail templates from modules and plugins