public function render() { global $post; wp_nonce_field(plugin_basename(__FILE__), $this->_id . '_noncename'); echo $this->_control->renderAll($this->_fields, $this->_getValues($post->ID), $this->_id); if (is_callable($this->_additionalFunctional)) { call_user_func($this->_additionalFunctional); } }
public function render($user) { wp_nonce_field(plugin_basename(__FILE__), $this->_id . '_noncename'); echo $this->_control->renderAll($this->_fields, $this->_getValues($user->ID), $this->_id); }