PluginProbe
Display Post Types – Post Grid, post list and post sliders / 1.4
Display Post Types – Post Grid, post list and post sliders v1.4
3.4.3 3.4.2 3.4.1 3.4.0 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.6.0 1.7.0 1.8.0 1.9.0 2.0.0 2.1.0 2.2.0 2.3.0 2.4.0 2.4.1 2.5.0 2.6.0 2.6.1 2.6.2 All 49 releases
display-post-types / display-post-types.php

display-post-types.php in Display Post Types – Post Grid, post list and post sliders 1.4, at display-post-types.php

58 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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