我如何在字段输出之前添加文本?
代码是:
<?php
global $current_user;
echo '<h1>DATI DI FATTURAZIONE</h1>';
echo pmpro_formatAddress(
$current_user->first_name . ' ' . $current_user->last_name,
$current_user->pmpro_baddress1,
$current_user->pmpro_bcity,
$current_user->pmpro_bstate,
$current_user->pmpro_bzipcode,
$current_user->pmpro_bcountry,
$current_user->pmpro_bphone,
$current_user->company
);
?>
我想举例如:
name:name lastname
现在是:
名称姓氏
谢谢大家
答案 0 :(得分:0)
编辑
$current_user->first_name . ' ' . $current_user->last_name,
到
'Name : '.$current_user->first_name . ' ' . $current_user->last_name,