HEX
Server: Apache
System: Linux d5123.usc1.stableserver.net 5.14.0-570.17.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Sat May 24 12:53:17 EDT 2025 x86_64
User: d5123 (1001)
PHP: 8.4.21
Disabled: NONE
Upload Files
File: /home/d5123/myboofola_com/wp-content/plugins/wp-event-solution/base/taxonomy.php
<?php

namespace Etn\Base;

defined( 'ABSPATH' ) || exit;
/**
 * Cpt Abstract Class.
 * Cpt Abstract class for custom post type of Builders.
 *
 * @since 1.0.0
 */
abstract class Taxonomy {

    /**
     * __construct function
     * @since 1.0.0
     */
    public function __construct() {
        // get custom post type name
        $name = $this->get_name();
        $cpt  = $this->get_cpt();
        // get custom post optios data
        $args = $this->taxonomy();

        // register custom post type
        add_action( 'init', function () use ( $name, $cpt, $args ) {
            register_taxonomy( $name, $cpt, $args );
        } );

       
        
    }

    public abstract function taxonomy();
}