lib/Post_Type.php
public static function register( $post_types = [] ) {
		foreach ( $post_types as $post_type => $args ) {
			$args = self::parse_args( $args );

			self::register_extensions( $post_type, $args );

			// Defaults for post registration.
			$args = wp_parse_args( $args['args'], [
				'description'       => $args['name_plural'],
				'public'            => false,
				'show_ui'           => true,
				'show_in_nav_menus' => true,
			] );

			register_post_type( $post_type, $args );
		}
	}
public static function register( $post_types = [] ) {
		foreach ( $post_types as $post_type => $args ) {
			$args = self::parse_args( $args );

			self::register_extensions( $post_type, $args );

			// Defaults for post registration.
			$args = wp_parse_args( $args['args'], [
				'description'       => $args['name_plural'],
				'public'            => false,
				'show_ui'           => true,
				'show_in_nav_menus' => true,
			] );

			register_post_type( $post_type, $args );
		}
	}
public static function register ( $ post_types = [ ] ) { foreach ( $ post_types as $ post_type => $ args ) { $ args = self :: parse_args ( $ args ) ; self :: register_extensions ( $ post_type , $ args ) ; // Defaults for post registration. $ args = wp_parse_args ( $ args [ 'args' ] , [ 'description' => $ args [ 'name_plural' ] , 'public' => false , 'show_ui' => true , 'show_in_nav_menus' => true , ] ) ; register_post_type ( $ post_type , $ args ) ; } }
Registers post types based on an array definition.

@since 2.0.0

@param array $post_types    {
An associative array of post types and the arguments used for registering the post type.

@type string $name_singular Singular name for post type.
@type string $name_plural   Optional. Plural name for post type. If not set, will be the
same as $name_singular.
@type array  $args          Arguments that get passed to post type registration.
@type array  $query         Custom query parameters for frontend and backend query.
@type array  $admin_columns An array of admin_column definitions.
}
Registers post types based on an array definition .