/** * Constructor function. * @param string $file __FILE__ of the main plugin * @access private * @since 1.0.0 */ private function __construct($file) { self::$token = 'ppb-post-builder'; self::$file = $file; self::$url = plugin_dir_url($file); self::$path = plugin_dir_path($file); self::$version = '1.0.0'; add_action('init', array($this, 'init')); }
<?php /* Plugin Name: Pootle Post Builder Addon Plugin URI: http://pootlepress.com/ Description: Enables you to use the pootle page builder to build awesome posts Author: pootlepress Version: 1.0.0 Author URI: http://pootlepress.com/ @developer shramee <*****@*****.**> */ /** Including Main Plugin class */ require 'class-ppb-post-builder.php'; /** Intantiating main plugin class */ PPB_Post_Builder_Addon::instance(__FILE__);