felixarntz/post-types-definitely

View on GitHub
post-types-definitely.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/*
Plugin Name: Post Types Definitely
Plugin URI:  https://wordpress.org/plugins/post-types-definitely/
Description: This framework plugin makes adding post types with taxonomies and meta to WordPress very simple, yet flexible.
Version:     0.6.7
Author:      Felix Arntz
Author URI:  https://leaves-and-love.net
License:     GNU General Public License v3
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: post-types-definitely
Tags:        definitely, framework, custom-post-type, list table, post filters, row actions, bulk actions, taxonomies, post meta, term meta, meta boxes
*/
/**
 * Plugin initialization file
 *
 * @package WPPTD
 * @author Felix Arntz <felix-arntz@leaves-and-love.net>
 * @since 0.5.0
 */

if ( ! defined( 'ABSPATH' ) ) {
    die();
}

if ( version_compare( phpversion(), '5.3.0' ) >= 0 && ! class_exists( 'WPPTD\App' ) ) {
    if ( file_exists( dirname( __FILE__ ) . '/post-types-definitely/vendor/autoload.php' ) ) {
        require_once dirname( __FILE__ ) . '/post-types-definitely/vendor/autoload.php';
    } elseif ( file_exists( dirname( __FILE__ ) . '/vendor/autoload.php' ) ) {
        require_once dirname( __FILE__ ) . '/vendor/autoload.php';
    }
} elseif ( ! class_exists( 'LaL_WP_Plugin_Loader' ) ) {
    if ( file_exists( dirname( __FILE__ ) . '/post-types-definitely/vendor/felixarntz/leavesandlove-wp-plugin-util/leavesandlove-wp-plugin-loader.php' ) ) {
        require_once dirname( __FILE__ ) . '/post-types-definitely/vendor/felixarntz/leavesandlove-wp-plugin-util/leavesandlove-wp-plugin-loader.php';
    } elseif ( file_exists( dirname( __FILE__ ) . '/vendor/felixarntz/leavesandlove-wp-plugin-util/leavesandlove-wp-plugin-loader.php' ) ) {
        require_once dirname( __FILE__ ) . '/vendor/felixarntz/leavesandlove-wp-plugin-util/leavesandlove-wp-plugin-loader.php';
    }
}

LaL_WP_Plugin_Loader::load_plugin( array(
    'slug'                    => 'post-types-definitely',
    'name'                    => 'Post Types Definitely',
    'version'                => '0.6.7',
    'main_file'                => __FILE__,
    'namespace'                => 'WPPTD',
    'textdomain'            => 'post-types-definitely',
    'use_language_packs'    => true,
    'is_library'            => true,
), array(
    'phpversion'            => '5.3.0',
    'wpversion'                => '4.0',
) );