Post_Type_Manager::__construct( string $prefix, array $services )

Constructor.

Description

Parameters

$prefix

(string) (Required) The instance prefix.

$services

(array) (Required) Array of service instances.

  • 'options'
    (Options) The Option API class instance.
  • 'error_handler'
    (Error_Handler) The error handler instance.

Source

File: src/db-objects/post-type-manager.php

	public function __construct( $prefix, $services ) {
		parent::__construct( $prefix );

		$this->set_services( $services );
		$this->setup_hooks();
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.