RWMB_Hidden_Field

The Evolved RWMB Hidden Field class.

Defined (1)

The class is defined in the following location(s).

/meta-box/inc/fields/hidden.php  
  1. class RWMB_Hidden_Field 
  2. /** 
  3. * Show begin HTML markup for fields 
  4. * @param string $html 
  5. * @param mixed $meta 
  6. * @param array $field 
  7. * @return string 
  8. */ 
  9. static function begin_html( $html, $meta, $field ) 
  10. return '<div class="hidden">'; 
  11.  
  12. /** 
  13. * Get field HTML 
  14. * @param string $html 
  15. * @param mixed $meta 
  16. * @param array $field 
  17. * @return string 
  18. */ 
  19. static function html( $html, $meta, $field ) 
  20. $val = " value='{$field['std']}'"; 
  21. $name = " name='{$field['id']}'"; 
  22. $id = " id='{$field['id']}'"; 
  23. $html .= "<input type='hidden' class='rwmb-hidden'{$name}{$id}{$val} />"; 
  24.  
  25. return $html;