1: <?php
2: /**
3: * WxRobot Admin
4: *
5: * WP微信机器人后台菜单 - 插件功能介绍
6: *
7: * @author midoks
8: * @category Admin
9: * @package WxRobot/Admin
10: * @since 5.3.0
11: */
12:
13: if ( ! defined( 'ABSPATH' ) ) {
14: exit;
15: }
16:
17: if( !class_exists('WxRobot_Admin_Menu_Instro') ):
18:
19: /**
20: * WxRobot_Admin_Menu_Instro 插件功能介绍
21: */
22: class WxRobot_Admin_Menu_Instro{
23:
24: /**
25: * 菜单初始化
26: *
27: * @return void
28: */
29: public function menu(){
30: add_menu_page('微信机器人',
31: _('微信机器人'),
32: 'manage_options',
33: 'weixin-robot',
34: array(&$this, 'weixin_robot_instro'),
35: WEIXIN_ROBOT_URL.'/weixin_robot.png');
36: }
37:
38: /**
39: * WP微信机器人介绍
40: *
41: * @return void
42: */
43: public function weixin_robot_instro(){
44: echo file_get_contents(WEIXIN_ROBOT.'assets/weixin_robot_instro.html');
45: do_action('weixin_midoks_push');
46: }
47:
48:
49: }
50:
51: endif;
52: ?>
53: