Newsletter

'newsletter_field_apikey', 'class' => 'newsletter_row', 'newsletter_custom_data' => 'custom', ] ); add_settings_field( 'newsletter_field_list', // as of WP 4.6 this value is used only internally // use $args' label_for to populate the id inside the callback __('brand id', 'newsletter'), 'newsletter_field_brandid_cb', 'newsletter', 'newsletter_section_developers', [ 'label_for' => 'newsletter_field_brandid', 'class' => 'newsletter_row', 'newsletter_custom_data' => 'custom', ] ); add_settings_field( 'newsletter_field_servername', // as of WP 4.6 this value is used only internally // use $args' label_for to populate the id inside the callback __('servername', 'newsletter'), 'newsletter_field_input_cb', 'newsletter', 'newsletter_section_db', [ 'label_for' => 'newsletter_field_servername', 'class' => 'newsletter_row', 'newsletter_custom_data' => 'custom', ] ); add_settings_field( 'newsletter_field_username', // as of WP 4.6 this value is used only internally // use $args' label_for to populate the id inside the callback __('username', 'newsletter'), 'newsletter_field_input_cb', 'newsletter', 'newsletter_section_db', [ 'label_for' => 'newsletter_field_username', 'class' => 'newsletter_row', 'newsletter_custom_data' => 'custom', ] ); add_settings_field( 'newsletter_field_password', // as of WP 4.6 this value is used only internally // use $args' label_for to populate the id inside the callback __('password', 'newsletter'), 'newsletter_field_input_cb', 'newsletter', 'newsletter_section_db', [ 'label_for' => 'newsletter_field_password', 'class' => 'newsletter_row', 'newsletter_custom_data' => 'custom', ] ); add_settings_field( 'newsletter_field_customstuff', // as of WP 4.6 this value is used only internally // use $args' label_for to populate the id inside the callback __('Custom Strings', 'newsletter'), 'newsletter_field_textarrea_cb', 'newsletter', 'newsletter_section_customstrings', [ 'label_for' => 'newsletter_field_customstuff', 'class' => 'newsletter_row', 'newsletter_custom_data' => 'custom', ] ); add_settings_field( 'newsletter_field_customstuff', // as of WP 4.6 this value is used only internally // use $args' label_for to populate the id inside the callback __('Custom Strings', 'newsletter'), 'newsletter_field_textarrea_favorites_cb', 'newsletter', 'newsletter_section_customstrings_favorites', [ 'label_for' => 'newsletter_field_favorites_customstuff', 'class' => 'newsletter_row', 'newsletter_custom_data' => 'custom', ] ); } /** * register our newsletter_settings_init to the admin_init action hook */ add_action('admin_init', 'newsletter_settings_init'); /** * custom option and settings: * callback functions */ // developers section cb // section callbacks can accept an $args parameter, which is an array. // $args have the following keys defined: title, id, callback. // the values are defined at the add_settings_section() function. function newsletter_section_developers_cb($args) { ?>

Follow the white rabbit.