Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-06-12 19:02:22

kuopassa
Plugin Author
From: Porvoo, Finland
Registered: 2008-12-03
Posts: 228
Website

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

#2 2020-06-12 19:12:44

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,250
Website GitHub

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

Offline

#3 2020-06-12 20:11:10

kuopassa
Plugin Author
From: Porvoo, Finland
Registered: 2008-12-03
Posts: 228
Website

Re: How to call a Textpattern function in 4.8.1?

Alright, thanks for the quick reply, Bloke. :-)

Offline

Board footer

Powered by FluxBB