wp-content/themes/twentyeleven/inc/theme-options.php:93Add a theme options page to the admin menu, including some help documentation.
function twentyeleven_theme_options_add_page() { $theme_page = add_theme_page( __( 'Theme Options', 'twentyeleven' ), // Name of page. __( 'Theme Options', 'twentyeleven' ), // Label in menu. 'edit_theme_options', // Capability required. 'theme_options', // Menu slug, used to uniquely identify the page. 'twentyeleven_theme_options_render_page' // Function that renders the options page. ); if ( ! $theme_page ) { return; } add_action( "load-{$theme_page}", 'twentyeleven_theme_options_help' );}Introduced in Twenty Eleven 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentyeleven/inc/theme-options.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.