<?php
if ( ! defined( 'ABSPATH' ) ) { exit; }

class Falcify_Post_Types {
    public static function get_public_post_types() {
        $types = get_post_types( array( 'public' => true ), 'objects' );
        unset( $types['attachment'] );
        return $types;
    }
    public static function is_enabled( $post_type ) {
        $enabled = (array) Falcify_Settings::get_value( 'enabled_post_types' );
        return in_array( $post_type, $enabled, true );
    }
}
