/**
 * Refresh the data within the client details table.
 *
 * @since	1.3.7
 *
 */
function mdjm_refresh_client_details_ajax()
{
    $result = array();
    ob_start();
    mdjm_do_client_details_table($_POST['client_id'], $_POST['event_id']);
    $result['client_details'] = ob_get_contents();
    ob_get_clean();
    echo json_encode($result);
    die;
}
Example #2
0
/**
 * Output the event client details row
 *
 * @since	1.3.7
 * @global	obj		$mdjm_event			MDJM_Event class object
 * @global	bool	$mdjm_event_update	True if this event is being updated, false if new.
 * @param	int		$event_id			The event ID.
 * @return	str
 */
function mdjm_event_metabox_client_details_row($event_id)
{
    global $mdjm_event, $mdjm_event_update;
    if (!mdjm_employee_can('view_clients_list')) {
        return;
    }
    mdjm_do_client_details_table($mdjm_event->client, $event_id);
}