WC_Register_WP_Admin_Settings::register_email_settings()
Registers all of the setting form fields for emails to each email type's group.
Метод класса: WC_Register_WP_Admin_Settings{}
Хуков нет.
Возвращает
Массив
.
Использование
$WC_Register_WP_Admin_Settings = new WC_Register_WP_Admin_Settings(); $WC_Register_WP_Admin_Settings->register_email_settings( $settings );
- $settings(массив) (обязательный)
- Existing registered settings.
Список изменений
С версии 3.0.0 | Введена. |
Код WC_Register_WP_Admin_Settings::register_email_settings() WC Register WP Admin Settings::register email settings WC 9.4.2
public function register_email_settings( $settings ) { foreach ( $this->object->form_fields as $id => $setting ) { $setting['id'] = $id; $setting['option_key'] = array( $this->object->get_option_key(), $id ); $new_setting = $this->register_setting( $setting ); if ( $new_setting ) { $settings[] = $new_setting; } } return $settings; }