diff options
| author | Max | 2018-11-05 12:47:47 +0100 |
|---|---|---|
| committer | Max | 2018-11-05 12:47:47 +0100 |
| commit | 1373956529cd4c5f7a5bdfaefad407b24c8bb828 (patch) | |
| tree | 98f6cee101b6a77a723f5796291b8128af396180 /functions.php | |
| parent | 89bcafe654844367ea3a730c8c03b8e63047db06 (diff) | |
| download | fuselkoenig_de-1373956529cd4c5f7a5bdfaefad407b24c8bb828.tar.gz | |
Adds first version of an API to get the top navigation menu and the sidebar.
Diffstat (limited to 'functions.php')
| -rw-r--r-- | functions.php | 5 |
1 files changed, 5 insertions, 0 deletions
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'; + |
