Check which page restrictions are set
-
Hi,
I have a custom post type that has restrictions set for certain user roles, but the page also has a sidebar from which I want to hide certain content, based on the settings for that page. I want to control this within the (sidebar) template for this post.
I thought I could use
wpmem_get_block_setting()
to check the restriction settings, but this returns an ‘undefined function’ error.Any suggestions on how to do this?
Thanks in advance,
Tibor
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Check which page restrictions are set’ is closed to new replies.