type === 'themes') { $section->title = wp_get_theme(basename(__DIR__))->display('Name'); } }, 10, 2); /** * Sage includes * * The $sage_includes array determines the code library included in your theme. * Add or remove files to the array as needed. Supports child theme overrides. * * Please note that missing files will produce a fatal error. */ $sage_includes = [ 'src/helpers.php', 'src/setup.php', 'src/filters.php', 'src/admin.php' ]; array_walk($sage_includes, function ($file) { if (!locate_template($file, true, true)) { trigger_error(sprintf(__('Error locating %s for inclusion', 'sage'), $file), E_USER_ERROR); } });