From 1373956529cd4c5f7a5bdfaefad407b24c8bb828 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 5 Nov 2018 12:47:47 +0100 Subject: Adds first version of an API to get the top navigation menu and the sidebar. --- functions.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 5e1fef8..7eebc3f 100644 --- a/functions.php +++ b/functions.php @@ -117,6 +117,8 @@ add_filter('posts_where', 'Delay_RSS_After_Publish'); /** * Deaktiviert REST-API und entfernt die Header aus dem HTML. + * + * It seems it doesn't work though. */ add_filter('rest_enabled', '_return_false'); add_filter('rest_jsonp_enabled', '_return_false'); @@ -250,3 +252,6 @@ if ( ! function_exists("get_my_clean_title")) { remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); remove_action( 'wp_print_styles', 'print_emoji_styles' ); */ + +require_once get_template_directory() . '/api/api.php'; + -- cgit v1.2.3