Esempio n. 1
0
 public function render(WP_Form_Component $element)
 {
     $type = $element->get_type();
     if (method_exists($this, $type)) {
         return call_user_func(array($this, $type), $element);
     }
     return '';
 }
 public function render(WP_Form_Component $element)
 {
     $type = $element->get_type();
     if (method_exists($this, $type)) {
         return call_user_func(array($this, $type), $element);
     } elseif ($element instanceof WP_Form_Element) {
         return $this->markup($element);
         // fallback to generic <input />
     }
     return '';
 }