lib/Post_Slug.php
public function register( $post_types = [] ) {
		foreach ( $post_types as $post_type => $callback ) {
			$this->post_types[ $post_type ] = [
				'callback' => $callback,
			];
		}
	}
public function register( $post_types = [] ) {
		foreach ( $post_types as $post_type => $callback ) {
			$this->post_types[ $post_type ] = [
				'callback' => $callback,
			];
		}
	}
public function register ( $ post_types = [ ] ) { foreach ( $ post_types as $ post_type => $ callback ) { $ this -> post_types [ $ post_type ] = [ 'callback' => $ callback , ] ; } }
Registers post type callbacks.

@param array $post_types An associative array of post types and their callbacks.
Registers post type callbacks .