Current Path : /storage/v11800/sahityaonline/public_html/wp-content/plugins/metform/base/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/sahityaonline/public_html/wp-content/plugins/metform/base/cpt.php |
<?php
namespace MetForm\Base;
defined( 'ABSPATH' ) || exit;
abstract Class Cpt{
public function __construct() {
$name = $this->get_name();
$args = $this->post_type();
add_action('init',function() use($name,$args) {
register_post_type( $name, $args );
});
}
public abstract function post_type();
}