| 1 |
<?php |
| 2 |
/** |
| 3 |
* The main plugin file for Posts Table with Search & Sort. |
| 4 |
* |
| 5 |
* @package Barn2\posts-table-search-sort |
| 6 |
* @author Barn2 Plugins <support@barn2.com> |
| 7 |
* @license GPL-3.0 |
| 8 |
* @copyright Barn2 Media Ltd |
| 9 |
* |
| 10 |
* @wordpress-plugin |
| 11 |
* Plugin Name: Posts Table with Search & Sort |
| 12 |
* Plugin URI: https://wordpress.org/plugins/posts-data-table/ |
| 13 |
* Description: List your posts in an instantly searchable & sortable table. |
| 14 |
* Version: 1.4.4 |
| 15 |
* Author: Barn2 Plugins |
| 16 |
* Author URI: https://barn2.com |
| 17 |
* Text Domain: posts-data-table |
| 18 |
* Domain Path: /languages |
| 19 |
* |
| 20 |
* Copyright: Barn2 Media Ltd |
| 21 |
* License: GNU General Public License v3.0 |
| 22 |
* License URI: https://www.gnu.org/licenses/gpl.html |
| 23 |
*/ |
| 24 |
|
| 25 |
namespace Barn2\Plugin\Posts_Table_Search_Sort; |
| 26 |
|
| 27 |
// Prevent direct file access |
| 28 |
if ( ! defined( '\ABSPATH' ) ) { |
| 29 |
exit; |
| 30 |
} |
| 31 |
|
| 32 |
const PLUGIN_VERSION = '1.4.4'; |
| 33 |
const PLUGIN_FILE = __FILE__; |
| 34 |
|
| 35 |
// Autoloader. |
| 36 |
require_once __DIR__ . '/vendor/autoload.php'; |
| 37 |
|
| 38 |
/** |
| 39 |
* Helper function to access the shared plugin instance. |
| 40 |
* |
| 41 |
* @return Plugin |
| 42 |
*/ |
| 43 |
function posts_table_search_sort() { |
| 44 |
return Plugin_Factory::create( PLUGIN_FILE, PLUGIN_VERSION ); |
| 45 |
} |
| 46 |
|
| 47 |
// Load the plugin. |
| 48 |
posts_table_search_sort()->register(); |
| 49 |
|