-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeacon-by.php
53 lines (35 loc) · 1.15 KB
/
beacon-by.php
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/*
Plugin Name: Beacon Plugin
Description: Create, Promote and Embed eBooks
Version: 1.5.8
Author: Beacon
Author URI: https://beacon.by
Plugin URI: https://beacon.by/wordpress/
License: GPL v2 (or later)
Requires PHP: 5.3
copyright 2016 beacon.by
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
require( 'config.php' );
require( 'classes/class.beacon_plugin.php' );
function beacon_row_meta( $links, $file ) {
$plugin = plugin_basename(__FILE__);
if ( $file == $plugin ) {
$new_links = array(
'<a href="admin.php?page=beaconby-help">Help</a>',
);
$links = array_merge( $links, $new_links );
}
return $links;
}
// add_action( 'widgets_init', 'beacon_register_widget' );
add_action( 'admin_init', array( 'Beacon_plugin', 'init' ) );
add_action( 'admin_menu', array( 'Beacon_plugin', 'menu'));
add_action( 'wp_ajax_BN_get_posts', array('Beacon_plugin', 'get_posts'));
add_filter( 'plugin_row_meta', 'beacon_row_meta', 10, 2);
// register_activation_hook( __FILE__, array( 'Beacon_plugin', 'plugin_activation' ) );
// register_deactivation_hook( __FILE__, array( 'Beacon_plugin', 'plugin_deactivation' ) );