| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Plugin Name: PostX |
| 5 |
* Description: <a href="https://www.wpxpo.com/postx/?utm_source=db-postx-plugin&utm_medium=details&utm_campaign=postx-dashboard">PostX</a> is the #1 Gutenberg Blocks plugin with 38+ free blocks that includes post gird, post list, post slider, carousel, news ticker, etc. Advanced capabilities like dynamic site building and design variations make it the best choice for creating News Magazine sites, and any kind of blog such as Personal Blogs, Travel Blogs, Fashion Blogs, Food Reviews, Recipe Blogs, etc. |
| 6 |
* Version: 5.0.20 |
| 7 |
* Author: Post Grid Team by WPXPO |
| 8 |
* Author URI: https://www.wpxpo.com/postx/?utm_source=db-postx-plugin&utm_medium=details&utm_campaign=postx-dashboard |
| 9 |
* Text Domain: ultimate-post |
| 10 |
* License: GPLv3 |
| 11 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html |
| 12 |
*/ |
| 13 |
|
| 14 |
defined( 'ABSPATH' ) || exit; |
| 15 |
|
| 16 |
// Define |
| 17 |
define( 'ULTP_VER', '5.0.20' ); |
| 18 |
define( 'ULTP_URL', plugin_dir_url( __FILE__ ) ); |
| 19 |
define( 'ULTP_BASE', plugin_basename( __FILE__ ) ); |
| 20 |
define( 'ULTP_PATH', plugin_dir_path( __FILE__ ) ); |
| 21 |
define( 'ULTP_HELLOBAR', '4122' ); |
| 22 |
|
| 23 |
|
| 24 |
// Language Load |
| 25 |
add_action( 'init', 'ultp_language_load' ); |
| 26 |
function ultp_language_load() { |
| 27 |
// template section wrapped inside a hook for netwrok site compatibility |
| 28 |
// Template |
| 29 |
require_once ULTP_PATH . 'classes/Templates.php'; |
| 30 |
new \ULTP\Templates(); |
| 31 |
load_plugin_textdomain( 'ultimate-post', false, basename( __DIR__ ) . '/languages/' ); |
| 32 |
} |
| 33 |
|
| 34 |
// Common Function |
| 35 |
if ( ! function_exists( 'ultimate_post' ) ) { |
| 36 |
function ultimate_post() { |
| 37 |
require_once ULTP_PATH . 'classes/Functions.php'; |
| 38 |
return \ULTP\Functions::get_instance(); |
| 39 |
} |
| 40 |
} |
| 41 |
|
| 42 |
// Plugin Initialization |
| 43 |
if ( ! class_exists( 'ULTP_Initialization' ) ) { |
| 44 |
require_once ULTP_PATH . 'classes/Initialization.php'; |
| 45 |
new \ULTP\ULTP_Initialization(); |
| 46 |
} |
| 47 |
|