PluginProbe
Posts Table with Search & Sort / trunk
Posts Table with Search & Sort vtrunk
trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2 1.3 1.3.1 1.3.1-v2 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 All 39 releases
posts-data-table / src / Plugin_Factory.php

Plugin_Factory.php in Posts Table with Search & Sort trunk, at src/Plugin_Factory.php

24 lines 493 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Barn2\Plugin\Posts_Table_Search_Sort;
3
4 /**
5 * Factory to create/return the shared plugin instance.
6 *
7 * @package Barn2\posts-table-search-sort
8 * @author Barn2 Plugins <support@barn2.com>
9 * @license GPL-3.0
10 * @copyright Barn2 Media Ltd
11 */
12 class Plugin_Factory {
13
14 private static $plugin = null;
15
16 public static function create( $file, $version ) {
17 if ( null === self::$plugin ) {
18 self::$plugin = new Plugin( $file, $version );
19 }
20 return self::$plugin;
21 }
22
23 }
24