ACF_Internal_Post_Type::__constructpublicACF 1.0

Constructs the class.

Метод класса: ACF_Internal_Post_Type{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$ACF_Internal_Post_Type = new ACF_Internal_Post_Type();
$ACF_Internal_Post_Type->__construct();

Код ACF_Internal_Post_Type::__construct() ACF 6.4.2

public function __construct() {
	acf_register_store( $this->store )->prop( 'multisite', true );

	$internal_post_types_store = acf_get_store( 'internal-post-types' );

	if ( ! $internal_post_types_store ) {
		$internal_post_types_store = acf_register_store( 'internal-post-types' );
	}

	$internal_post_types_store->set( $this->post_type, get_class( $this ) );

	add_action( "acf/validate_{$this->hook_name}", array( $this, 'translate_post' ) );

	add_filter( 'wp_unique_post_slug', array( $this, 'apply_unique_post_slug' ), 999, 6 );
	add_action( 'wp_untrash_post_status', array( $this, 'untrash_post_status' ), 10, 3 );
}