wc_privacy_policy_text()
Output privacy policy text. This is custom text which can be added via the customizer/privacy settings section.
Loads the relevant policy for the current page unless a specific policy text is required.
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
wc_privacy_policy_text( $type );
- $type(строка)
- Type of policy to load. Valid values include registration and checkout.
По умолчанию: 'checkout'
Список изменений
С версии 3.4.0 | Введена. |
Код wc_privacy_policy_text() wc privacy policy text WC 8.3.1
function wc_privacy_policy_text( $type = 'checkout' ) { if ( ! wc_privacy_policy_page_id() ) { return; } echo wp_kses_post( wpautop( wc_replace_policy_page_link_placeholders( wc_get_privacy_policy_text( $type ) ) ) ); }