-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheasy-curated-lists.php
30 lines (26 loc) · 1.35 KB
/
easy-curated-lists.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
<?php
/**
* Plugin Name: Easy Curated Lists
* Plugin URI: https://github.com/arunbasillal/easy-curated-lists
* Description: Display a curated list of posts, pages, products, or any post type using shortcode <code>[easycuratedlists id='1,12,25']</code>.
* Author: Arun Basil Lal
* Author URI: https://millionclues.com
* Version: 1.0
* Text Domain: easy-curated-lists
* Domain Path: /languages
* License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;
/**
* Define constants
*
* @since 1.0
*/
if ( ! defined( 'ECL_VERSION_NUM' ) ) define( 'ECL_VERSION_NUM' , '1.0' ); // Plugin version constant
if ( ! defined( 'ECL_EASY_CURATED_LISTS' ) ) define( 'ECL_EASY_CURATED_LISTS' , trim( dirname( plugin_basename( __FILE__ ) ), '/' ) ); // Name of the plugin folder eg - 'easy-curated-lists'
if ( ! defined( 'ECL_EASY_CURATED_LISTS_DIR' ) ) define( 'ECL_EASY_CURATED_LISTS_DIR', plugin_dir_path( __FILE__ ) ); // Plugin directory absolute path with the trailing slash. Useful for using with includes eg - /var/www/html/wp-content/plugins/easy-curated-lists/
// Load everything
require_once( ECL_EASY_CURATED_LISTS_DIR . 'loader.php' );
// Register activation hook (this has to be in the main plugin file or refer bit.ly/2qMbn2O)
register_activation_hook( __FILE__, 'ecl_activate_plugin' );