Skip to content

Importer/Inserter return values #5

@nmoinvaz

Description

@nmoinvaz

I don't believe that $ticketId in insertTicket will ever be WP_Error because wp_insert_post's second argument $wp_error is false.

$ticketId = wpas_insert_ticket([

This will require a fix to wpas_insert_ticket which is part of Awesome Support plugin (not the importer).

The same goes for $response in insertHistoryItem, it is missing the second argument $wp_error which should be true:

$response = wp_update_post([

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions