function add_to_twig($twig) { /* this is where you can add your own fuctions to twig */ $twig->addExtension(new Twig_Extension_StringLoader()); $twig->addFilter('myfoo', new Twig_Filter_Function('myfoo')); return $twig; } } new StarterSite(); function myfoo($text) { $text .= ' bar!'; return $text; } Timber::add_route('guests', function ($params) { Timber::load_view('guests.php', null, 200, $params); }); function cc_mime_types($mimes) { $mimes['svg'] = 'image/svg+xml'; return $mimes; } function annointed_admin_bar_remove() { global $wp_admin_bar; /* Remove their stuff */ $wp_admin_bar->remove_menu('wp-logo'); } function remove_menus() { remove_menu_page('edit-comments.php');