Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[solved] Checking production_status in core
Is there a neat, hacky or unsupported way to find the production_status
from core Textpattern?
I can do it with various plugins, but I’m curious if it is possible without using a plugin.
Thanks in advance.
Last edited by gaekwad (2015-10-19 15:49:50)
Offline
Re: [solved] Checking production_status in core
<txp:php>echo $GLOBALS['production_status'];</txp:php>
Offline
Re: [solved] Checking production_status in core
Perfect. Thank you, Ruud.
Offline
Re: [solved] Checking production_status in core
Isn’t this safer?
<txp:php>echo get_pref('production_status');</txp:php>
Online
Re: [solved] Checking production_status in core
Yes, that’s better.
Offline
Re: [solved] Checking production_status in core
Marvellous. Thank you, Oleg (and Ruud for second pair of eyes).
Offline