<?php
/*
Plugin Name: Beacon Lead Magnets and Lead Capture
Description: Create, Promote and Embed eBooks
Version: 1.5.9
Author: Beacon
Author URI: https://beacon.by
Plugin URI: https://beacon.by/wordpress/
License: GPLv2 or later
Requires PHP: 7.4
Requires at least: 5.3

copyright 2016-2025 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="' . esc_url( admin_url( 'admin.php?page=beaconby-help' ) ) . '">Help</a>',
				);

		$links = array_merge( $links, $new_links );

	}

	return $links;
}


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' ) );
