-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.php
More file actions
28 lines (28 loc) · 749 Bytes
/
index.php
File metadata and controls
28 lines (28 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/*
Plugin Name: wp-api
Plugin URI: http://wordpress.org/extend/plugins/wp-api/
Description: Wordpress api in JSON format
Author: Peyman Aslani
Version: 1.0.3
Author URI: http://www.myappsnippet.com/
*/
//includes
@include_once('admin/admin.php');
@include_once ('includes/get_author.php');
@include_once ('includes/get_tags.php');
@include_once ('includes/get_page.php');
@include_once ('includes/get_posts.php');
@include_once ('includes/search_api.php');
@include_once ('includes/comment_api.php');
@include_once ('includes/get_gravatar.php');
//hooks
add_action('admin_menu', 'admin_page_class::add_menu_item');
new get_author();
new get_tags();
new get_page();
new get_posts();
new search_api();
new comment_api();
new get_gravatar();
?>