$value ){ echo ''; } } /** * Add a nonce field * @return Loco_mvc_HiddenFields */ public function setNonce( $action ){ $this['loco-nonce'] = wp_create_nonce( $action ); return $this; } /** * Load postdata fields * @return Loco_mvc_HiddenFields */ public function addPost( Loco_mvc_PostParams $post ){ foreach( $post->getSerial() as $pair ){ $this[ $pair[0] ] = isset($pair[1]) ? $pair[1] : ''; } return $this; } }