Exemple #1
0
 public static function doAutoLoad()
 {
     // allow deps for plugins loaded before cred
     $extra_deps = apply_filters('cred_loader_dependencies', array());
     if (!empty($extra_deps)) {
         self::$__dependencies__ = self::merge(self::$__dependencies__, $extra_deps);
     }
     // allow deps for plugins loaded before cred
     $extra_assets = apply_filters('cred_loader_assets', array());
     if (!empty($extra_assets)) {
         self::$__assets__ = self::merge(self::$__assets__, $extra_assets);
     }
     // auto load dependencies that have registered and need to auto load
     do_action('cred_loader_auto_load');
 }