Browse: Home / Classes / Learndash_Admin_Import_Posts /

Learndash_Admin_Import_Posts::__construct

Learndash_Admin_Import_Posts::__construct( string $post_type,  int $user_id,  string $home_url,  Learndash_Admin_Import_File_Handler $file_handler,  Learndash_Admin_Import_Export_Logger $logger )

Constructor.


Description #


Parameters #

$post_type

(string) (Required) Post Type.

$user_id

(int) (Required) User ID. All posts are attached to this user.

$home_url

(string) (Required) The previous home url.

$file_handler

(Learndash_Admin_Import_File_Handler) (Required) File Handler class instance.

$logger

(Learndash_Admin_Import_Export_Logger) (Required) Logger class instance.


Return #

(void)


Source #

File: includes/admin/classes-import-export/import/class-learndash-admin-import-posts.php


Changelog #

Changelog
Version Description
4.3.0 Introduced.