search
尋找貓咪~QQ 地點 桃園市桃園區 Taoyuan , Taoyuan

WooCommerce-隱藏會員後台預設登入訊息 – ARON HACK 亞倫害的

目錄
WooCommerce-隱藏會員後台預設登入訊息

方法一

把下面這一段加在function.php中。

// --- 隱藏會員登入訊息 ---//
add_action( 'woocommerce_account_dashboard', 'disable_please_logout_message' );
function disable_please_logout_message() {
	// Aron 您好 (不是 Aron 嗎? 請登出) ← 隱藏這行訊息
	echo '';
}


方法二

到woocommerce預設主題資料夾 woocommerce > myaccount > dashboard.php複製,放到自己的佈景主題中並修改。

原本的程式長下面這個樣子

recent orders, manage your shipping and billing addresses, and edit your password and account details.', 'woocommerce' ), esc_url( wc_get_endpoint_url( 'orders' ) ), esc_url( wc_get_endpoint_url( 'edit-address' ) ), esc_url( wc_get_endpoint_url( 'edit-account' ) ) ); ?>

把這一段整個註解掉就可以了

recent orders, manage your shipping and billing addresses, and edit your password and account details.', 'woocommerce' ), // esc_url( wc_get_endpoint_url( 'orders' ) ), // esc_url( wc_get_endpoint_url( 'edit-address' ) ), // esc_url( wc_get_endpoint_url( 'edit-account' ) ) // ); ?>


推薦文章

WordPress客製化網頁設計,複製貼上就搞定的程式碼大全



熱門推薦

本文由 aronhackcom 提供 原文連結

寵物協尋 相信 終究能找到回家的路
寫了7763篇文章,獲得2次喜歡
留言回覆
回覆
精彩推薦