コード例 #1
0
<?php

/*
Plugin Name: Pootle page builder Photography add on
Plugin URI: http://pootlepress.com/
Description: Create stunning slideshows and galleries in minutes.
Author: pootlepress
Version: 1.0.1
Author URI: http://pootlepress.com/
@developer shramee <*****@*****.**>
*/
/** Plugin admin class */
require 'inc/class-admin.php';
/** Plugin public class */
require 'inc/class-public.php';
/** Including Main Plugin class */
require 'class-ppb-photo-addon.php';
/** Intantiating main plugin class */
page_builder_photo_addon::instance(__FILE__);
コード例 #2
0
 /**
  * Constructor function.
  * @param string $file __FILE__ of the main plugin
  * @access  private
  * @since   1.0.0
  */
 private function __construct($file)
 {
     self::$token = 'ppb-photo-addon';
     self::$file = $file;
     self::$url = plugin_dir_url($file);
     self::$path = plugin_dir_path($file);
     self::$version = '1.0.1';
     add_action('init', array($this, 'init'));
 }