public static function register()
    {
        $postType = static::getPostType();
        $config = static::getPostTypeConfig();

        if (empty($postType) || $postType === 'post') {
            throw new PostTypeRegistrationException('Post type not set');
        }

        if (empty($config)) {
            throw new PostTypeRegistrationException('Config not set');
        }

        register_post_type($postType, $config);
    }
public static function register()
    {
        $postType = static::getPostType();
        $config = static::getPostTypeConfig();

        if (empty($postType) || $postType === 'post') {
            throw new PostTypeRegistrationException('Post type not set');
        }

        if (empty($config)) {
            throw new PostTypeRegistrationException('Config not set');
        }

        register_post_type($postType, $config);
    }
public static function register ( ) { $ postType = static :: getPostType ( ) ; $ config = static :: getPostTypeConfig ( ) ; if ( empty ( $ postType ) || $ postType === 'post' ) { throw new PostTypeRegistrationException ( 'Post type not set' ) ; } if ( empty ( $ config ) ) { throw new PostTypeRegistrationException ( 'Config not set' ) ; } register_post_type ( $ postType , $ config ) ; }
Register this PostType with WordPress

@return void
Register this PostType with WordPress