开发者 |
jcollings
importwp |
---|---|
更新时间 | 2025年5月23日 16:08 |
捐献地址: | 去捐款 |
PHP版本: | 5.6 及以上 |
WordPress版本: | 6.8 |
版权: | GPLv3 |
版权网址: | 版权信息 |
Our XML importer allows you to easily import xml files made up from any XML schema / structure. When importing XML files you first need to set the document base path, the XML base path defines what makes up a record and is used when calculating how many records will be imported. Using our XML visual data selector you can choose what data to be imported from each record's XML nodes attributes or text, or you can manually select data using custom written XPath queries.
Our CSV importer makes it possible to import CSV files containing any number of columns or rows, with settings to set the CSV delimiter character that is used to separate each data cells defaulting to a comma, set the CSV enclosure character that is used to wrap around each data cell defaulting to a quotation mark, and set what character encoding was used when creating the csv. Using our CSV data selector you can visually choose what columns should be used when importing each record.
Documentation can be found online on importwp.com.
A full list of available addons can be found here.
iwp/importer/template/process_attachment/resize
to allow resizing of downloaded attachments before they are imported.iwp/template/process_attachment/enable_file_size_hash
to compare file size with remote attachments instead of just the filename.iwp/mapper/session_importer_ids
filter to allow grouping of importers during delete.iwp/ftp/disable_size_check
filter to allow compatibility with FTP servers returning file size of -1.iwp/importer/template/post_create_term
filter to disable creation of terms when importing taxonomies onto a post type.iwp/exporter/user/fields
filter when generating user exporter field list.iwp/exporter/user/setup_data
filter, to avoid conflict with ACF module in Pro.iwp/ftp/passive_mode
to enable/disable ftp passive mode.iwp/importer/init
action when importer is being started.iwp/importer/mapper/init
run before a record has been imported.iwp/importer/mapper/before
to modify data before importing a record.iwp/importer/mapper/before_insert
to modify data before inserting a record.iwp/importer/mapper/before_update
to modify data before updating a record.iwp/importer/mapper/after
run after a record has been imported.iwp/allowed_file_types
to allow different file types apart from the default xml / csv.iwp/get_filetype_from_ext
to allow setting the file type based on the attached file name.iwp_register_importer_addon
apiiwp_register_importer_addon
iwp/custom_field_label
filter to alter custom field label on importer log.iwp/register_events
hook to allow extension of the event system.