public function register()
    {
        $registrars = array(
            new CustomPostTypeRegistrar($this),
            new TaxonomyRegistrar($this)
        );

        foreach ($registrars as $registrar) {
            $registrar->register();
        }
    }
public function register()
    {
        $registrars = array(
            new CustomPostTypeRegistrar($this),
            new TaxonomyRegistrar($this)
        );

        foreach ($registrars as $registrar) {
            $registrar->register();
        }
    }
public function register ( ) { $ registrars = array ( new CustomPostTypeRegistrar ( $ this ) , new TaxonomyRegistrar ( $ this ) ) ; foreach ( $ registrars as $ registrar ) { $ registrar -> register ( ) ; } }
Registers the custom post type in Wordpress. A Custom post type
must trigger this during the 'init' state for it to be recognized
automatically by Wordpress.
Registers the custom post type in Wordpress . A Custom post type must trigger this during the init state for it to be recognized automatically by Wordpress .