'airdrop-gettokentext', 'class' => 'airdrop_row', 'airdrop_custom_data' => 'custom', ) ); add_settings_field( 'airdrop-gettokenicon', __( 'Get token button icon', 'airdrop' ), 'airdrop_gettokenicon_cb', 'airdrop', 'airdrop_section_basic', array( 'label_for' => 'airdrop-gettokenicon', 'class' => 'airdrop_row', ) ); add_settings_field( 'airdrop-gettokenbackground', __( 'Button background color', 'airdrop' ), 'airdrop_gettokenbackground_cb', 'airdrop', 'airdrop_section_basic', array( 'label_for' => 'airdrop-gettokenbackground', 'class' => 'airdrop_row', ) ); } /** * register airdrop_settings_init to the admin_init action hook */ add_action( 'admin_init', 'airdrop_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 airdrop_section_basic_cb( $args ) { esc_html__( 'Basic config for WP Airdrop Manager', 'airdrop' ); } // submittext field cb // field callbacks can accept an $args parameter, which is an array. // $args is defined at the add_settings_field() function. // wordpress has magic interaction with the following keys: label_for, class. // the "label_for" key value is used for the "for" attribute of the