'sta_field_key', 'class' => 'sta_row', 'sta_custom_data' => 'custom', ] ); } /** * register our sta_settings_init to the admin_init action hook */ add_action( 'admin_init', 'sta_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 sta_section_developers_cb( $args ) { ?>

. // the "class" key value is used for the "class" attribute of the containing the field. // you can add custom key value pairs to be used inside your callbacks. function sta_field_key_cb( $args ) { // get the value of the setting we've registered with register_setting() $options = get_option( 'sta_options' ); // output the field ?>