Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Virtual" slugs?
#4
ccagle8 Wrote:Just thinking aloud here: Couldn't you use a check with return_page_slug(), sort of like this:

Within the filter you can do this (it's equivalent to checking the global $id variable), as it is always called from the frontend. Outside you would have to test first, if it is the frontend, e.g. if (function_exists('return_page_slug')) ...
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply


Messages In This Thread
"Virtual" slugs? - by RobA - 2011-06-17, 00:49:59
"Virtual" slugs? - by mvlcek - 2011-06-17, 01:07:26
"Virtual" slugs? - by ccagle8 - 2011-06-17, 01:18:35
"Virtual" slugs? - by mvlcek - 2011-06-17, 01:25:59
"Virtual" slugs? - by Zegnåt - 2011-06-17, 01:28:27
"Virtual" slugs? - by RobA - 2011-06-17, 03:52:54
"Virtual" slugs? - by Zegnåt - 2011-06-17, 09:24:05



Users browsing this thread: 1 Guest(s)