$value ) { $callback = 'uebns_settings_field_cb'; $name_field = 'uebns_settings_social_'.$link_url; $args = array ( 'label_for' => $link_url, 'type' => $value ); add_settings_field( $name_field, $link_url, $callback, 'uebns', 'uebns_settings_section', $args ); } } /** * register uebns_settings_init to the admin_init action hook */ add_action('admin_init', 'uebns_settings_init'); /** * section CDN Description */ function uebns_settings_cdn_section_cb() { echo __('Want to use the CDN for Font Awesome Icons?','aus'); } /** * section Style Description */ function uebns_settings_section_cb() { printf( __('Team Settings Section. Here you can edit the Social Media Icons styles for the front/content. By default the plugin used and needed the font awesome icon libary(%s).','aus'), 'more infos' ); } /** * SOcial Media CDN * * @param array $args * @return void */ function uebns_settings_field_cdn_cb( array $args ){ $old_setting_value = ( !empty( get_option( 'uebns_settings_cdn_awesome' ) ) ? get_option( 'uebns_settings_cdn_awesome' ) : 'yes'); ?>