woocommerce_privacy_policy_page_id
Get the privacy policy page ID.
Usage
add_filter( 'woocommerce_privacy_policy_page_id', 'wp_kama_woocommerce_privacy_policy_page_id_filter' ); /** * Function for `woocommerce_privacy_policy_page_id` filter-hook. * * @param $absint() * * @return */ function wp_kama_woocommerce_privacy_policy_page_id_filter( $absint() ){ // filter... return $absint(); }
- $absint()
- -
Changelog
Since 3.4.0 | Introduced. |
Where the hook is called
woocommerce_privacy_policy_page_id
woocommerce/includes/wc-template-functions.php 816
return apply_filters( 'woocommerce_privacy_policy_page_id', 0 < $page_id ? absint( $page_id ) : 0 );