function getTestFI() { $fi = new FrontInclude(); $fi->setHandle('popup'); $fi->setSrc('/src/popup.js'); return $fi; }
public function registerInclude(FrontInclude $script) { wp_register_script($script->getHandle(), $script->getSrc(), $script->getDependency(), $script->getVersion(), $script->loadInFooter()); }
public function register(FrontInclude $include) { $this->includes[$include->getHandle()] = $include; return $this; }
/** * @param FrontInclude $include * * @return mixed */ public function register(FrontInclude $include) { $this->registered[$include->getHandle()] = $include; }