woocommerce_get_privacy_policy_text
Использование
add_filter( 'woocommerce_get_privacy_policy_text', 'wp_kama_woocommerce_get_privacy_policy_text_filter', 10, 2 ); /** * Function for `woocommerce_get_privacy_policy_text` filter-hook. * * @param $text * @param $type * * @return */ function wp_kama_woocommerce_get_privacy_policy_text_filter( $text, $type ){ // filter... return $text; }
- $text
- -
- $type
- -
Где вызывается хук
woocommerce_get_privacy_policy_text
woocommerce/includes/wc-template-functions.php 879
return trim( apply_filters( 'woocommerce_get_privacy_policy_text', $text, $type ) );