Как сделать редактируемые метки в wordpress

Я создал настраиваемый модуль, который имеет настройки администратора и администратора.

Ниже приведен код моей формы, и я могу представить значения в таблицу wp_options. Теперь я хочу дать возможность изменять метку в соответствии с требованиями пользователя.

Используя нижеследующую форму, можно изменить значение метки. Я хочу изменить это на редактируемый и добавить / обновить.

$this->addGroup("clickandpledge_recurringsettings", __("Recurring Settings", "wpjobboard")); //1 $this->_env = array( 'OneTimeOnly' => __("One Time Only", "wpjobboard"), 'Recurring' => __("Recurring", "wpjobboard"), ); $e = $this->create("wpjobboard_clickandpledge_Paymentoptions", Daq_Form_Element::TYPE_CHECKBOX); $e->setValue($this->conf("wpjobboard_clickandpledge_Paymentoptions")); $e->setLabel(__("Payment Options", "wpjobboard")); $e->addValidator(new Daq_Validate_InArray(array_keys($this->_env))); foreach($this->_env as $k => $v) { $e->addOption($k, $k, $v); } $this->addElement($e, "clickandpledge"); //2 $this->_env = array( 'OneTimeOnly' => __("One Time Only", "wpjobboard"), 'Recurring' => __("Recurring", "wpjobboard"), ); $e = $this->create("wpjobboard_clickandpledge_DefaultpaymentOptions", Daq_Form_Element::TYPE_SELECT); $e->setValue($this->conf("wpjobboard_clickandpledge_DefaultpaymentOptions")); $e->setLabel(__("Default Payment Options", "wpjobboard")); $e->addValidator(new Daq_Validate_InArray(array_keys($this->_env))); foreach($this->_env as $k => $v) { $e->addOption($k, $k, $v); } $this->addElement($e, "clickandpledge"); //3 $this->_env = array( 'Installment' => __("Installment (eg pay $1000 in 10 installments of $100 each)", "wpjobboard"), 'Subscription' => __("Subscription (eg pay $100 every month for 12 months)", "wpjobboard"), ); $e = $this->create("wpjobboard_clickandpledge_PaymentSubscription", Daq_Form_Element::TYPE_CHECKBOX); $e->setValue($this->conf("wpjobboard_clickandpledge_PaymentSubscription")); $e->setLabel(__("Recurring Types", "wpjobboard")); $e->addValidator(new Daq_Validate_InArray(array_keys($this->_env))); foreach($this->_env as $k => $v) { $e->addOption($k, $k, $v); } $this->addElement($e, "clickandpledge"); //4 $this->_env = array( 'Installment' => __("Installment", "wpjobboard"), 'Subscription' => __("Subscription", "wpjobboard"), ); $e = $this->create("wpjobboard_clickandpledge_PaymentRecurring", Daq_Form_Element::TYPE_SELECT); $e->setValue($this->conf("wpjobboard_clickandpledge_PaymentRecurring")); $e->setLabel(__("Default Recurring Type", "wpjobboard")); $e->addValidator(new Daq_Validate_InArray(array_keys($this->_env))); foreach($this->_env as $k => $v) { $e->addOption($k, $k, $v); } $this->addElement($e, "clickandpledge"); //5 $this->_env = array( 'Week' => __("Week", "wpjobboard"), 'TwoWeek' => __("2 Weeks", "wpjobboard"), 'Month' => __("Month", "wpjobboard"), 'TwoMonth' => __("2 Months", "wpjobboard"), 'Quarter' => __("Quarter", "wpjobboard"), 'SixMonths' => __("6 Months", "wpjobboard"), 'Year' => __("Year", "wpjobboard"), ); $e = $this->create("wpjobboard_clickandpledge_PaymentPeriods", Daq_Form_Element::TYPE_CHECKBOX); $e->setValue($this->conf("wpjobboard_clickandpledge_PaymentPeriods")); $e->setLabel(__("Periodicity", "wpjobboard")); $e->addValidator(new Daq_Validate_InArray(array_keys($this->_env))); foreach($this->_env as $k => $v) { $e->addOption($k, $k, $v); } $this->addElement($e, "clickandpledge"); //6 $this->_env = array( 'IndefiniteOnly' => __("Indefinite Only", "wpjobboard"), 'OpenFieldOnly' => __("Open Field Only", "wpjobboard"), 'IndefiniteOpenFieldOption' => __("Indefinite + Open Field Option", "wpjobboard"), 'FixedNumberNoChangeAllowed' => __("Fixed Number - No Change Allowed", "wpjobboard"), ); $e = $this->create("wpjobboard_clickandpledge_PaymentNumberofpayments", Daq_Form_Element::TYPE_RADIO); $e->setValue($this->conf("wpjobboard_clickandpledge_PaymentNumberofpayments")); $e->setLabel(__("Number of payments", "wpjobboard")); $e->addValidator(new Daq_Validate_InArray(array_keys($this->_env))); foreach($this->_env as $k => $v) { $e->addOption($k, $k, $v); } $this->addElement($e, "clickandpledge"); //7 $e = $this->create("wpjobboard_clickandpledge_PaymentDefaultnumberofpayments", Daq_Form_Element::TYPE_TEXT); $e->setValue($this->conf("wpjobboard_clickandpledge_PaymentDefaultnumberofpayments")); $e->setLabel(__("Default number of payments", "wpjobboard")); $this->addElement($e, "clickandpledge"); //8 $e = $this->create("wpjobboard_clickandpledge_PaymentMaximumnumberofinstallmentsallowed", Daq_Form_Element::TYPE_TEXT); $e->setValue($this->conf("wpjobboard_clickandpledge_PaymentMaximumnumberofinstallmentsallowed")); $e->setLabel(__("Maximum number of installments allowed", "wpjobboard")); $this->addElement($e, "clickandpledge"); 

}

В этой функции я хочу, чтобы значение setLabel / Payment Options редактировалось в области администрирования для некоторых входных меток

  $e->setLabel(__("Payment Options", "wpjobboard"));