Notifications
Clear all

wpForo 1.x.x [Closed] Crossposting how to use from code

2 Posts
2 Users
0 Likes
885 Views
Posts: 51
Topic starter
(@basatexcellent)
Trusted Member
Joined: 7 years ago

I am looking for a method to enable/disable xposting from code. As a number of my posts are created from code I need to have the possibility to enable/disable xposting from code too.

I already can set the post metadata keys "_wpforo_crossposting_forumid" and "_wpforo_crossposting_disabled" and when opening the post created by code in the WP backend all I need to do is hit the update button and the magic happens.

However if I update / publish the post from code it does not set up the relation between the WordPress post and the wpForo topic. Any ideas how I can do this from code?

1 Reply
Sofy
Posts: 4106
 Sofy
Admin
(@sofy)
Support Team
Joined: 6 years ago

Hi @basatexcellent,

Please open a new support topic in gvectors.com forum and ask there the question. 

https://gvectors.com/forum/wpforo-blog-cross-posting/

However if I update / publish the post from code it does not set up the relation between the WordPress post and the wpForo topic. Any ideas how I can do this from code?

Please let them know what code do you mean.