get_privacy_policy_template

函式
get_privacy_policy_template ( No parameters )
返回值
  • (string) Full path to privacy policy template file.
相關
  • get_query_template()
定義位置
相關方法
get_privacy_policy_urlget_the_privacy_policy_linkthe_privacy_policy_linkwp_add_privacy_policy_contentget_page_template
引入
5.2.0
棄用
-

get_privacy_policy_template函式是一個WordPress函式,用於檢索隱私政策模板檔案的路徑: 這個函式不接受任何引數,並返回隱私政策模板檔案的路徑。

檢索當前模板或父模板中的隱私政策頁面模板的路徑。

模板層次和模板路徑可通過{@see ‘$type_template_hierarchy’}和{@see ‘$type_template’}動態鉤子過濾,其中`$type`為’privacypolicy’。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function get_privacy_policy_template() {
$templates = array( 'privacy-policy.php' );
return get_query_template( 'privacypolicy', $templates );
}
function get_privacy_policy_template() { $templates = array( 'privacy-policy.php' ); return get_query_template( 'privacypolicy', $templates ); }
function get_privacy_policy_template() {
	$templates = array( 'privacy-policy.php' );

	return get_query_template( 'privacypolicy', $templates );
}

常見問題

FAQs
檢視更多 >