Exemplo n.º 1
0
/**
 * Get an update record.
 *
 * @api
 *
 * @since 1.0
 *
 * @param int $id
 *
 * @return \ITELIC\Update
 */
function itelic_get_update($id)
{
    $update = \ITELIC\Update::get($id);
    /**
     * Filter the update object as retrieved from the database.
     *
     * @since 1.0
     *
     * @param \ITELIC\Update $update
     */
    $filtered = apply_filters('itelic_get_update', $update);
    if ($filtered instanceof \ITELIC\Update) {
        $update = $filtered;
    }
    return $update;
}