get_available_fields()
get_available_fields( $module = null) : array
Function to get available fields based on the module
Parameters
$module |
|
Returns
array —- Fields set as based on the groups
Seamlessly create / update posts, custom posts, pages, products, media, SEO and contents of premium plugins from your CSV data with ease.
Class SmackUCI_API | wp-ultimate-csv-importer-api.php
saveMapping( $module, $eventMapping, $is_template, $template_name) : array|string
Function which helps to save the mapping
$module |
|
|
$eventMapping |
|
|
$is_template |
|
|
$template_name |
|
importData( $importType, $importMethod, $mode, $data, $row_no = 1, $eventMapping, $affectedRecords = array(), array $mediaConfig = array(), array $importConfig = array(), integer $is_template, $template_name = null) : array
Function to push the data into WordPress as below Posts, Pages, Products, Custom Posts, Comments, Categories, Tags, Taxonomies, Customer Reviews & Users
$importType |
|
|
$importMethod |
|
|
$mode |
|
|
$data |
|
|
$row_no |
|
|
$eventMapping |
|
|
$affectedRecords | ||
array | $mediaConfig |
|
array | $importConfig |
|
integer | $is_template |
|
$template_name |
|
setFeaturedImage( $imageURL, $postID, $renameImage = null) : array
Function which helps to assign featured image to the specific post / product
$imageURL | | External URL of the image |
|
$postID | | Valid ID of the Post / Page / Product |
|
$renameImage | | Name of the image which you want to assign it. |
setTerms( $terms, $taxonomy_name, $pID) : array
Function which helps to assign the terms with parent -> child hierarchical as any number of depth for a specific post / product
$terms | | Terms with any number of Parent -> Child hierarchical Ex:- Cars -> BMW -> Safety kits -> Airbags |
|
$taxonomy_name | | Name of the taxonomy Ex:- Product Category |
|
$pID | | Valid ID of the Post / Page / Product. |
registerField( $field_info, $module, $import_type, $plugin) : array
Function which helps to register the custom field for ACF, PODS, Toolset Types plugins
$field_info | | It has the field information like ( label, name, desc, field_type, required, choice, role, related_to, bi_directional ) |
|
$module | | Name of the module | Posts (or) WooCommerce (or) Event (or) CustomPost. |
|
$import_type | | If you want to register field under any custom post means, the value should be like movie. Here, movie is a custom post type. |
|
$plugin | | Should mention the plugin name like acf (or) types (or) pods |
saveTemplate( $template_name, $template_info, $module) : array|string
Save mapping as a template
$template_name |
|
|
$template_info |
|
|
$module |
|