Title: Restrict Access with Post Code
Last modified: January 27, 2020

---

# Restrict Access with Post Code

 *  Resolved [thoseitguys](https://wordpress.org/support/users/thoseitguys/)
 * (@thoseitguys)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/restrict-access-with-post-code/)
 * Is it possible to restrict access to certain categories using their profile post
   codes?

Viewing 31 replies (of 31 total)

[←](https://wordpress.org/support/topic/restrict-access-with-post-code/page/2/?output_format=md)
[1](https://wordpress.org/support/topic/restrict-access-with-post-code/?output_format=md)
[2](https://wordpress.org/support/topic/restrict-access-with-post-code/page/2/?output_format=md)
3

 *  [crslz](https://wordpress.org/support/users/crslz/)
 * (@crslz)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/restrict-access-with-post-code/page/3/#post-12385737)
 * Hi,
 * In order to meet your demand, you will not have to adjust the code as much, but
   use this filter [the_content](https://developer.wordpress.org/reference/hooks/the_content/)
   instead of [wp_redirect](https://developer.wordpress.org/reference/functions/wp_redirect/)
 * Regards

Viewing 31 replies (of 31 total)

[←](https://wordpress.org/support/topic/restrict-access-with-post-code/page/2/?output_format=md)
[1](https://wordpress.org/support/topic/restrict-access-with-post-code/?output_format=md)
[2](https://wordpress.org/support/topic/restrict-access-with-post-code/page/2/?output_format=md)
3

The topic ‘Restrict Access with Post Code’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 31 replies
 * 2 participants
 * Last reply from: [crslz](https://wordpress.org/support/users/crslz/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/restrict-access-with-post-code/page/3/#post-12385737)
 * Status: resolved