Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
How to call a Textpattern function in 4.8.1?
There’s probably a simple way to call a Textpattern function… But how to call a function, like create_user
inside a Textpattern form/page? That function in question is located inside textpattern\lib\txplib_admin.php, so should I just include_once
that whole file?
Offline
Re: How to call a Textpattern function in 4.8.1?
kuopassa wrote #323738:
how to call a function, like
create_user
inside a Textpattern form/page?
Yep, as you suspect, just include_once()
and you’ll be good to go. If you can possibly hijack the user.create
/ done
callback, that’s better, but I suspect if you’re doing things from the front-end that’s not possible.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Online
Re: How to call a Textpattern function in 4.8.1?
Alright, thanks for the quick reply, Bloke. :-)
Offline