| 1 |
<?php |
| 2 |
/** |
| 3 |
* The plugin bootstrap file |
| 4 |
* |
| 5 |
* This file is read by WordPress to generate the plugin information in the plugin |
| 6 |
* admin area. This file also includes all of the dependencies used by the plugin, |
| 7 |
* registers the activation and deactivation functions, and defines a function |
| 8 |
* that starts the plugin. |
| 9 |
* |
| 10 |
* @link https://vedathemes.com |
| 11 |
* @since 1.0.0 |
| 12 |
* @package Display_Post_Types |
| 13 |
* |
| 14 |
* @wordpress-plugin |
| 15 |
* Plugin Name: Display Post Types |
| 16 |
* Description: Filter, sort and display post, page or any post type. |
| 17 |
* Version: 1.4.0 |
| 18 |
* Author: vedathemes |
| 19 |
* Author URI: https://vedathemes.com |
| 20 |
* License: GPL-3.0+ |
| 21 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt |
| 22 |
* Text Domain: display-post-types |
| 23 |
* Domain Path: /lang |
| 24 |
*/ |
| 25 |
|
| 26 |
// If this file is called directly, abort. |
| 27 |
if ( ! defined( 'WPINC' ) ) { |
| 28 |
die; |
| 29 |
} |
| 30 |
|
| 31 |
// Define plugin constants. |
| 32 |
define( 'DISPLAY_POST_TYPES_DIR', plugin_dir_path( __FILE__ ) ); |
| 33 |
|
| 34 |
// Currently plugin version. |
| 35 |
define( 'DISPLAY_POST_TYPES_VERSION', '1.4.0' ); |
| 36 |
|
| 37 |
// Load plugin textdomain. |
| 38 |
add_action( 'plugins_loaded', 'display_post_types_plugins_loaded' ); |
| 39 |
|
| 40 |
// Load plugin's bridge functionality. |
| 41 |
require DISPLAY_POST_TYPES_DIR . '/bridge/class-instance-counter.php'; |
| 42 |
require DISPLAY_POST_TYPES_DIR . '/bridge/functions.php'; |
| 43 |
|
| 44 |
// Load plugin's front-end functionality. |
| 45 |
require DISPLAY_POST_TYPES_DIR . '/frontend/class-frontend.php'; |
| 46 |
|
| 47 |
// Load plugin's admin functionality. |
| 48 |
require DISPLAY_POST_TYPES_DIR . '/backend/class-backend.php'; |
| 49 |
|
| 50 |
/** |
| 51 |
* Load plugin text domain. |
| 52 |
* |
| 53 |
* @since 1.0.0 |
| 54 |
*/ |
| 55 |
function display_post_types_plugins_loaded() { |
| 56 |
load_plugin_textdomain( 'display-post-types', false, DISPLAY_POST_TYPES_DIR . 'lang/' ); |
| 57 |
} |
| 58 |
|