Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] - Only show page on menu if logged in
#16
(2016-01-20, 00:43:46)shawn_a Wrote: You can probably just stick a link on the page if logged in and 404.

It can literally be one line of code.

if(blargh)
echo get_site_url(false) . $GSADMIN . '/edit.php?title=' . _id($id);

But does $id work since we redirect to 404 ?

Also you don't call get_component with my plugin....

There is no redirect if default or user 404 page existed. So $id is setted from $_GET array and $url is setted from $data_index object.

In my code I want to set value for page slug not for title, because page was requested by slug. For this I need to call hook in admin header.
Reply


Messages In This Thread
RE: Only show page if logged in - by Frens - 2016-01-13, 04:40:45
RE: Only show page if logged in - by shawn_a - 2016-01-13, 04:42:43
RE: [SOLVED] - Only show page on menu if logged in - by DimaYakovlev - 2016-01-20, 01:09:04



Users browsing this thread: 1 Guest(s)