Closed dnaber-de closed 8 years ago
Replace {TYPE} with
{TYPE}
user
term
post
comment
Use always singular unless it is specified in a different way!
wp_insert_{TYPE}
/** * Attach error handler/logger here * * @param WP_Error $error * @param Type\Import{TYPE}Interface $import_{TYPE} */ do_action( 'w2m_import_{TYPE}_error', $error, $import_{TYPE} );
(Only for term, post and comment.)
/** * @param WP_{TYPE} $wp_{TYPE} * @param Type\Import{TYPE}Interface $import_{TYPE} */ do_action( 'w2m_import_missing_{TYPE}_ancestor', $wp_{TYPE}, $import_{TYPE} );
/** * @param WP_{TYPE} $wp_{TYPE} * @param Type\Import{TYPE}Interface $import_{TYPE} */ do_action( 'w2m_{TYPE}_imported', $wp_{TYPE}, $import_{TYPE} );
E.g. when linking of terms or insertion of meta data fails. Please use the following scheme for the parameter signature of any actions: WP_Error, Import_Element Pass any contextual data with the WP_Error object like it's done in the parsers.
WP_Error, Import_Element
Replace
{TYPE}
withuser
term
post
comment
Use always singular unless it is specified in a different way!
Import (
wp_insert_{TYPE}
) failedParent object does not exist
(Only for
term
,post
andcomment
.){TYPE} successfully imported
Additional errors
E.g. when linking of terms or insertion of meta data fails. Please use the following scheme for the parameter signature of any actions:
WP_Error, Import_Element
Pass any contextual data with the WP_Error object like it's done in the parsers.