Limited Support
Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.
We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!
Merry Christmas and Happy Holidays! 🎄
Hi all,
I am trying to access WPF() in a new PHP file inside below folder. I am getting Call to undefined function WPF()
\wp-content\plugins\wpforo\wpf-includes
$topic = array(
'userid' => $USERID,
'title' => $title,
'body' => $body,
'forumid' => $forumid,
'views' => $views,
'type' => $type ,
'created' => $created
);
WPF()->topic->add($topic);
Can somebody please help me with this?
Hi @jospehmoseph,
What PHP file is that? Is it a plugin PHP file? What WordPress hook uses your plugin to connect?