當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


PHP WHMCS ClientAreaDomainDetailsOutput用法及代碼示例

允許返回輸出以在客戶區域詳細信息頁麵中顯示。

參數

變量 類型 注意
domain \WHMCS\Domain\Domain 表示正在呈現的域的域對象。

響應

返回要在頁麵上輸出的 HTML。

示例代碼

<?php

add_hook('ClientAreaDomainDetailsOutput', 1, function($domain) {
    $domainName = $domain->domain;
    $clientModel = $domain->client;
    $domainStatus = $domain->status;
    $clientName = $clientModel->firstName . ' ' . $clientModel->lastName;
    return 'You can place any HTML here that will be output in the $hookOutput smarty variable array';
});

相關用法


注:本文由純淨天空篩選整理自whmcs.com大神的英文原創作品 ClientAreaDomainDetailsOutput。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。