APP_Importer::__construct( string $post_type = 'post', array $fields, array $args = '' )

Importer construnctor


Package


Description Description

Args can have 3 elements:

$args = array(
    'taxonomies' => array( 'valid', 'taxonomies' ),
    'custom_fields' => array(
        'csv_key' => 'internal_key',
        'csv_key' => array(
            'internal_key' => 'key',
            'default' => 'value'
        )
    ),
    'tax_meta' => array( array( 'tax' => array( 'csv_key' => 'tax_key' ) ),
);

Parameters Parameters

$post_type

(string) (Optional) Post type

Default value: 'post'

$fields

(array) (Required) Field names array

$args

(array) (Optional) Extra arguments

Default value: ''


Premium WordPress Apps

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.