How to initialize $id from another function?
问题 I would like to use $id to echo the id entered in other functions. Here is an example function using id: function nl_register_ga_code() { // Validation callback register_setting( 'nl_theme_options', 'nl_theme_options', 'nl_validate_settings' ); // Add setting to section add_settings_section( 'nl_footer_section', 'Footer', 'nl_display_footer_section', 'nl_theme_options.php' ); // Create textarea field $field_args = array( 'type' => 'textarea', 'id' => 'nl_ga_code', 'name' => 'nl_ga_code',