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
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. |
saveTemplate( $template_name, $template_info, $module) : array|string
Save mapping as a template
$template_name |
|
|
$template_info |
|
|
$module |
|