Plugin Directory

Changeset 2955915


Ignore:
Timestamp:
08/20/2023 09:45:31 PM (3 years ago)
Author:
surror
Message:

Release v2.0.0

Location:
easy-post-taxonomy-builder
Files:
72 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • easy-post-taxonomy-builder/trunk/easy-post-tax-builder.php

    r2949091 r2955915  
    11<?php
    22/**
    3  * Plugin Name: Custom Post Type, Tag, Category and Taxonomy Builder
    4  * Plugin URI: https://profiles.wordpress.org/surror/
    5  * Description: Create multiple post type's and it's taxonomies with simple steps. Or, One click create new one from the existing library.
    6  * Version: 1.2.1
    7  * Author: Surror
    8  * Author URI: https://surror.com/
    9  * Text Domain: eptb
     3 * Easy Post and Taxonomy Builder Plugin.
    104 *
    11  * @package Easy Post and Taxonomy Builder
     5 * @package      EPTB
     6 * @copyright    Copyright (C) 2014-2023, Surror - dev@surror.com
     7 * @link         https://surror.com
     8 * @since        2.0.0
     9 *
     10 * @wordpress-plugin
     11 * Plugin Name:       Easy Post and Taxonomy Builder
     12 * Version:           2.0.0
     13 * Plugin URI:        https://surror.com/easy-post-and-taxonomy-builder/
     14 * Description:       Create multiple post type's and it's taxonomies with simple steps. Or, One click create new one from the existing library. 🚀
     15 * Author:            Surror
     16 * Author URI:        https://surror.com/
     17 * License:           GPL v3
     18 * License URI:       https://www.gnu.org/licenses/gpl-3.0.txt
     19 * Text Domain:       eptb
     20 * Domain Path:       /languages
    1221 */
    1322
    14 // Set constants.
    15 define( 'EPTB_VER', '1.2.1' );
    16 define( 'EPTB_FILE', __FILE__ );
    17 define( 'EPTB_BASE', plugin_basename( EPTB_FILE ) );
    18 define( 'EPTB_DIR', plugin_dir_path( EPTB_FILE ) );
    19 define( 'EPTB_URI', plugins_url( '/', EPTB_FILE ) );
     23defined( 'ABSPATH' ) || exit;
    2024
    21 require_once EPTB_DIR . 'classes/class-easy-post-tax-builder.php';
     25/**
     26 * EPTB class.
     27*
     28* @class Main class of the plugin.
     29*/
     30final class EPTB {
     31
     32    /**
     33     * Plugin version.
     34     *
     35     * @var string
     36     */
     37    public $version = '2.0.0';
     38
     39    /**
     40     * The single instance of the class.
     41     *
     42     * @var EPTB
     43     */
     44    protected static $instance = null;
     45
     46    /**
     47     * Retrieve main EPTB instance.
     48     *
     49     * Ensure only one instance is loaded or can be loaded.
     50     *
     51     * @see eptb()
     52     * @return EPTB
     53     */
     54    public static function get() {
     55        if ( is_null( self::$instance ) && ! ( self::$instance instanceof EPTB ) ) {
     56            self::$instance = new EPTB();
     57            self::$instance->setup();
     58        }
     59
     60        return self::$instance;
     61    }
     62
     63    /**
     64     * Instantiate the plugin.
     65     */
     66    private function setup() {
     67        // Define plugin constants.
     68        $this->define_constants();
     69
     70        // Include required files.
     71        $this->includes();
     72
     73        // Instantiate classes.
     74        $this->instantiate();
     75
     76        // Loaded action.
     77        do_action( 'eptb/loaded' );
     78    }
     79
     80    /**
     81     * Define the plugin constants.
     82     */
     83    private function define_constants() {
     84        define( 'EPTB_VERSION', $this->version );
     85        define( 'EPTB_FILE', __FILE__ );
     86        define( 'EPTB_BASE', plugin_basename( EPTB_FILE ) );
     87        define( 'EPTB_DIR', plugin_dir_path( EPTB_FILE ) );
     88        define( 'EPTB_URI', plugins_url( '/', EPTB_FILE ) );
     89    }
     90
     91    /**
     92     * Include the required files.
     93     */
     94    private function includes() {
     95        include dirname( __FILE__ ) . '/vendor/autoload.php';
     96    }
     97
     98    /**
     99     * Instantiate classes.
     100     */
     101    private function instantiate() {
     102        new \EPTB\Post();
     103        new \EPTB\Library();
     104        new \EPTB\Surror\Dashboard();
     105    }
     106
     107}
     108
     109/**
     110 * Returns the main instance of FAL to prevent the need to use globals.
     111 *
     112 * @return eptb
     113 */
     114function eptb() {
     115    return EPTB::get();
     116}
     117
     118// Start it.
     119eptb();
  • easy-post-taxonomy-builder/trunk/readme.txt

    r2949110 r2955915  
    1 === Custom Post Type, Tag, Category, and Taxonomy Builder ===
     1=== Post Type and Taxonomy Builder ===
    22Contributors: surror
    33License: GPLv3
    4 Tags: post type builder, post, page, cpt, taxonomy
     4Tags: builder, post type, taxonomy, cpt
    55Requires at least: 4.4
    66Requires PHP: 5.5.3
    77Tested up to: 6.2.2
    8 Stable tag: 1.2.1
    9 License: GPLv2 or later
    10 License URI: https://www.gnu.org/licenses/gpl-2.0.html
     8Stable tag: 2.0.0
    119
    1210🌟 Create a custom post type, tag, category and taxonomies with simple steps 🌟
     
    4846== Changelog ==
    4947
     48= 2.0.0 =
     49* Improvement: Added the dashboard page.
     50
    5051= 1.2.1 =
    5152* Improvement: Updated compatibility for WordPress 6.2.2
Note: See TracChangeset for help on using the changeset viewer.