#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
How-to and Troubles...
Access WPF() in new...
 
Share:
Share
Tweet
Share
Notifications
Clear all

Access WPF() in new PHP file

    Last Post
RSS

JospehMoseph
Posts: 8
 JospehMoseph
Topic starter
January 17, 2021 12:48 am
(@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? 

This topic was modified 1 year ago by JospehMoseph
1 Reply
Robert
Posts: 8964
Robert - Twitter
 Robert
Admin
January 17, 2021 7:07 am
(@robert)
Support Team
Joined: 6 years ago

Hi @jospehmoseph,

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

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
  All forum topics
  Previous Topic
Next Topic  

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages wpforo-advanced-attachments-128x128 wpforo-embeds-128x128 wpForo User Custom Fields addon wpForo – Blog Cross Posting addon wpForo Ads Manager wpForo – WooCommerce Memberships Integration wpForo Emoticons wpForo – Tenor GIFs Integration
View all Addons »

Recent Topics

  • Forum topics and pages not indexing

    By Vijiki, 2 hours ago

  • Can't send confirmation email from topics when suscribe for new topic

    By gilbau, 6 hours ago

  • Can't add shortcodes to wpForo

    By avorai, 6 hours ago

  • New Feature H1 title for tags

    By annushka, 20 hours ago

  • File in antisapm protection not deleted

    By pesimist57, 1 day ago

  • How to make URL dynamic like - post1233

    By kedy, 1 day ago

Topic Tags

  • translation49
  • css49
  • plugin conflict48
  • seo45
  • new features44
  • buddypress42
  • ultimate member40
  • avatar40
  • forum40
  • moderation38
  • login38
  • registration36
  • threaded layout35
  • cache33
  • editor32
  • menu32
  • shortcode31
  • spam29
  • phrases28
  • forum accesses28
View all tags (2162)

Recent Posts

  • RE: Forum topics and pages not indexing

    Most ome of those search results showing on Google have...

    By Vijiki, 20 mins ago

  • RE: Can't send confirmation email from topics when suscribe for new topic

    Thanks for your answer, but i think my smtp wp is worki...

    By gilbau, 43 mins ago

  • RE: Can't add shortcodes to wpForo

    @avorai, Again, I don't see any relation of this issu...

    By Robert, 52 mins ago

  • RE: Show Likers with their avatar

    @fawp a half crashed forum a fully crashed forum ...

    By Tutrix, 3 hours ago

  • RE: Can users be in multiple forums?

    @monimair, wpForo has secondary usergroups function so...

    By Chris, 3 hours ago

  • RE: H1 title for tags

    Hi @annushka, Your suggestion has been added to our t...

    By Chris, 3 hours ago

  • RE: wpForo 2 Major Update is Imminent!

    I would like to be added to the beta test as I am worki...

    By laurenceliew, 5 hours ago

Share:
Share
Tweet
Share
  Forum Statistics
20 Forums
9,754 Topics
49.4 K Posts
4 Online
43.4 K Members

Latest Post: Forum topics and pages not indexing Our newest member: VFix Phones and Tech Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2022 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation