-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelevantly.php
36 lines (28 loc) · 1.03 KB
/
relevantly.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
<?php
/*
Plugin Name: Relevantly
Plugin URI:
Description: This plugin can analyze the content of a user's website and automatically suggest related posts or pages to keep visitors engaged and increase their time on the site.
Author: Aleksej Vukomanovic
Version: 0.8.1
Author URI: https://github.com/zutigrm
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'RELEVANTLY_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
define( 'RELEVANTLY_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'RELEVANTLY_PLUGIN_FILE_PATH', __FILE__ );
define( 'RELEVANTLY_VERSION', '0.8.1' );
define( 'RELEVANTLY_DEFAULT_LIMIT', 3 );
if ( ! defined( 'RELEVANTLY_KEYWORDS_TABLE' ) ) {
define( 'RELEVANTLY_KEYWORDS_TABLE', 'post_keywords' );
}
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require_once __DIR__ . '/vendor/autoload.php';
}
// Include the main plugin file
require_once RELEVANTLY_PLUGIN_PATH . 'includes/plugin.php';
// Initialize the plugin
$relevantly_plugin = Relevantly\Plugin::get_instance();