Notifications
Clear all

wpForo 1.x.x Access WPF() in new PHP file

2 Posts
2 Users
0 Likes
428 Views
JospehMoseph
Posts: 8
Topic starter
(@jospehmoseph)
Active Member
Joined: 3 years ago

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? 

1 Reply
Robert
Posts: 9737
Admin
(@robert)
Support Team
Joined: 7 years ago

Hi @jospehmoseph,

What PHP file is that? Is it a plugin PHP file? What WordPress hook uses your plugin to connect?

Reply
Share: