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()
Source
File: includes/libs/posts-import.class.php
593 | private function get_import_options( $source = [] ){ |
594 | $taxonomy = $this ->post_type->get_post_tax(); |
595 | $tag_tax = $this ->post_type->get_tag_tax(); |
596 | $native_tax = isset( $source [ 'tax_input' ][ $taxonomy ] ) ? ( array ) $source [ 'tax_input' ][ $taxonomy ] : []; |
597 | $native_tag = isset( $source [ 'tax_input' ][ $tag_tax ] ) ? ( array ) $source [ 'tax_input' ][ $tag_tax ] : []; |
600 | 'native_tax' => $native_tax , |
601 | 'native_tag' => $native_tag , |
602 | 'import_description' => $source [ 'import_description' ], |
603 | 'import_status' => $source [ 'import_status' ], |
604 | 'import_title' => isset( $source [ 'import_title' ] ) |
607 | return $import_options ; |
Expand full source code
Collapse full source code