This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Posts_Import::get_import_options( array $source = array() )
Process the import options
Parameters
- $source
-
(Optional)
Default value: array()
Return
(array)
Source
File: includes/libs/posts-import.class.php
private function get_import_options( $source = [] ){ $taxonomy = $this->post_type->get_post_tax(); $tag_tax = $this->post_type->get_tag_tax(); $native_tax = isset( $source['tax_input'][ $taxonomy ] ) ? (array) $source['tax_input'][ $taxonomy ] : []; $native_tag = isset( $source['tax_input'][ $tag_tax ] ) ? (array) $source['tax_input'][ $tag_tax ] : []; $import_options = [ 'native_tax' => $native_tax, 'native_tag' => $native_tag, 'import_description' => $source['import_description'], 'import_status' => $source['import_status'], 'import_title' => isset( $source['import_title'] ) ]; return $import_options; }