🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-14 08:31:37 | PHP 8.1.34
📂
/ (Root)
/
home
/
therahul
/
web.janapremimavi.edu.np
/
wp-content
/
plugins
/
shopengine
/
base
📍 /home/therahul/web.janapremimavi.edu.np/wp-content/plugins/shopengine/base
🔄 Refresh
✏️
Editing: cpt.php
Writable
<?php namespace ShopEngine\Base; defined('ABSPATH') || exit; /** * Cpt Abstract Class. * Cpt Abstract class for custom post type of Builders. * * @since 1.0.0 */ abstract class Cpt { abstract public function post_type(); abstract public function get_name(); /** * __construct function * @since 1.0.0 */ public function __construct() { // get custom post type name $name = $this->get_name(); $args = $this->post_type(); // register custom post type add_action('init', function() use ($name, $args) { register_post_type($name, $args); }); } }
💾 Save Changes
❌ Cancel