src/Controller/ControllerTraits/PostTypesTrait.php
final protected function initPostTypesTrait() {
		add_action("init", function () {
			$postTypes = $this->getPostTypes();
			foreach ($postTypes as $postType) {
				$this->registerPostType($postType);
			}
		});
	}
final protected function initPostTypesTrait() {
		add_action("init", function () {
			$postTypes = $this->getPostTypes();
			foreach ($postTypes as $postType) {
				$this->registerPostType($postType);
			}
		});
	}
final protected function initPostTypesTrait ( ) { add_action ( "init" , function ( ) { $ postTypes = $ this -> getPostTypes ( ) ; foreach ( $ postTypes as $ postType ) { $ this -> registerPostType ( $ postType ) ; } } ) ; }
Called automatically when the plugins are loaded, this method
registers our post types for the users of this boilerplate.

@return void
Called automatically when the plugins are loaded this method registers our post types for the users of this boilerplate .