我确实向所有WooCommerce订阅添加了元数据。现在,我想在/my account/subscriptions/page中将其显示为一个新列。这可能吗?如何继续?
向/My-Account/订阅/WooCommerce页面添加额外的列
1 个回复
SO网友:Berat Çakır
首先,只需将所有订阅用户ID添加到一个数组中,即可打印用户元数据:
$user = get_all_user_id();
foreach ($user as $usr) {
echo $usr->user_login; // just type in here the metadata name you created
echo $usr->first_name;
echo $usr->last_name;
}
/my-account/subscriptions/
这是哪一页?结束