define_constants(); $this->includes(); } /** * Include all the necessary files * * @since 1.0.0 */ public function includes() { require_once PLD_PATH . '/inc/classes/pld-library.php'; require_once PLD_PATH . '/inc/classes/pld-activation.php'; require_once PLD_PATH . 'inc/classes/pld-init.php'; require_once PLD_PATH . 'inc/classes/pld-admin.php'; require_once PLD_PATH . 'inc/classes/pld-enqueue.php'; require_once PLD_PATH . 'inc/classes/pld-hook.php'; require_once PLD_PATH . 'inc/classes/pld-ajax.php'; } /** * Define necessary constants * * @since 1.0.0 */ public function define_constants() { defined('PLD_PATH') or define('PLD_PATH', plugin_dir_path(__FILE__)); defined('PLD_IMG_DIR') or define('PLD_IMG_DIR', plugin_dir_url(__FILE__) . 'images'); defined('PLD_CSS_DIR') or define('PLD_CSS_DIR', plugin_dir_url(__FILE__) . 'css'); defined('PLD_JS_DIR') or define('PLD_JS_DIR', plugin_dir_url(__FILE__) . 'js'); defined('PLD_VERSION') or define('PLD_VERSION', '1.1.2'); defined('PLD_TD') or define('PLD_TD', 'posts-like-dislike'); defined('PLD_BASENAME') or define('PLD_BASENAME', plugin_basename(__FILE__)); } } $pld_object = new Posts_like_dislike(); }