# Pages are not private by plan

**URL:** <https://community.hivepress.io/t/pages-are-not-private-by-plan/9218>\
**Category:** Memberships\
**Tags:** memberships\
**Created:** [January 14, 2024, 12:53pm UTC](https://community.hivepress.io/t/pages-are-not-private-by-plan/9218 "2024-01-14T12:53:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuu](https://community.hivepress.io/letter_avatar_proxy/v4/letter/y/ce7236/32.png) [@yuu](https://community.hivepress.io/u/yuu)\
**Post date:** [January 14, 2024, 12:53pm UTC](https://community.hivepress.io/t/pages-are-not-private-by-plan/9218/1 "2024-01-14T12:53:01Z")

</div>

good day  
About Membership.

It has been quite a while since I purchased the plugin, but I cannot set it up properly.

Pages that are set to private on a particular plan (e.g. Plan A) are also set to private on other plans (e.g. Plan B and Plan C).

As shown in the attached image, you can add a private page only for (for example, Plan A) and then add a private page for (for example, Plan B or Plan C).  
（I have not added any pages to be made private in Plan B or Plan C.

In the hivepress→memberships settings, the

Single Pages  
Attribute  
All Pages

I have tried everything and nothing has changed.

Also, the same page is private with no login and a specific plan (e.g. Plan A) tied to it.

The same page becomes private when the user is not logged in.  
The same page will be made private for a specific plan (e.g. Plan A).  
I would like to know how to make a page private for other plans.

Also, I would like to add the following code, where is your\_membership\_plan\_plan\_id?

Thank you in advance.

```auto
add_filter(
    'hivepress/v1/templates/site_header_block',
    function( $template ) {
		
		if(is_user_logged_in()){
			if(hivepress()->get_version('memberships')){
				$membership = \HivePress\Models\Membership::query()->filter(['user' => get_current_user_id()])->get_first();

        		if(! $membership || your_membership_plan_id === $membership->get_plan__id()){
            		$template = hivepress()->helper->merge_trees(
						$template,.
						[
							'blocks' => [
								'listing_submit_link' => [
									'type' => 'content',.
								],
							],.
						]
					);
        		}
    		}
		}else{
			$template = hivepress()->helper->merge_trees(
				$template,.
				[
					'blocks' => [
						'listing_submit_link' => [
							'type' => 'content',.
						],
					],.
				]
			);
		}

    return $template; }
    },
    1000
);
```

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [January 15, 2024, 2:38pm UTC](https://community.hivepress.io/t/pages-are-not-private-by-plan/9218/4 "2024-01-15T14:38:08Z")

</div>

Hi,

Please send temporary WP access to [support@hivepress.io](mailto:support@hivepress.io) with details for reproducing this issue, and we’ll check it (please send only the link, without login and password). You can create a temporary access link using this plugin [Temporary Login Without Password – WordPress plugin | WordPress.org](https://wordpress.org/plugins/temporary-login-without-password).

---

<div class="post-metadata">

**Author:** ![yuu](https://community.hivepress.io/letter_avatar_proxy/v4/letter/y/ce7236/32.png) [@yuu](https://community.hivepress.io/u/yuu)\
**Post date:** [January 15, 2024, 2:56pm UTC](https://community.hivepress.io/t/pages-are-not-private-by-plan/9218/5 "2024-01-15T14:56:30Z")

</div>

Hello, I sent you

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [January 16, 2024, 9:14am UTC](https://community.hivepress.io/t/pages-are-not-private-by-plan/9218/7 "2024-01-16T09:14:37Z")

</div>

HI,

Unfortunately, access is blocked when we follow your link. Most likely, there is a restriction on the part of your hosting provider, I recommend that you review the settings or contact your hosting provider.

---

<div class="post-metadata">

**Author:** ![yuu](https://community.hivepress.io/letter_avatar_proxy/v4/letter/y/ce7236/32.png) [@yuu](https://community.hivepress.io/u/yuu)\
**Post date:** [January 17, 2024, 4:18am UTC](https://community.hivepress.io/t/pages-are-not-private-by-plan/9218/8 "2024-01-17T04:18:51Z")

</div>

Hello.

I just changed my server settings.  
Please check it out.

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [January 17, 2024, 12:20pm UTC](https://community.hivepress.io/t/pages-are-not-private-by-plan/9218/12 "2024-01-17T12:20:22Z")

</div>

Hi,

Please provide more details or we can change the language to English, as the site is now in the live version.

---

<div class="post-metadata">

**Author:** ![yuu](https://community.hivepress.io/letter_avatar_proxy/v4/letter/y/ce7236/32.png) [@yuu](https://community.hivepress.io/u/yuu)\
**Post date:** [January 17, 2024, 1:04pm UTC](https://community.hivepress.io/t/pages-are-not-private-by-plan/9218/13 "2024-01-17T13:04:31Z")

</div>

I’m Japanese, so I don’t speak English.  
I translate and make sentences for this, too.

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [January 18, 2024, 8:56am UTC](https://community.hivepress.io/t/pages-are-not-private-by-plan/9218/15 "2024-01-18T08:56:08Z")

</div>

Hi,

I see. We just need you to approve changing the Japanese interface language on your site to English so that we can check this issue in more detail.

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [February 17, 2024, 8:56am UTC](https://community.hivepress.io/t/pages-are-not-private-by-plan/9218/16 "2024-02-17T08:56:23Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
