Notifications
Clear all

Script [Solved] wpForo Actions & Filters

3 Posts
1 Users
0 Reactions
53 Views
MarcelDerAdmin
Posts: 36
Topic starter
(@marcelderadmin)
Trusted Member
Joined: 5 years ago

Hi im making a plugin and i want to catch wpForo Post Creations and Replies etc. Is there a list of actions and filters that can be used? I couldnt find any in the documentation. Maybe im just blind.

Cheers.

2 Replies
1 Reply
MarcelDerAdmin
(@marcelderadmin)
Joined: 5 years ago

Trusted Member
Posts: 36

Posted by: @marcelderadmin

Hi im making a plugin and i want to catch wpForo Post Creations and Replies etc. Is there a list of actions and filters that can be used? I couldnt find any in the documentation. Maybe im just blind.

Cheers.

 

ok i managed to find some but my new issue is that

WPF()->moderation->post_unapprove( $post_id );
is not unapproving the post and returns false even if i pass a post_id tho thats valid

 

Reply
MarcelDerAdmin
Posts: 36
Topic starter
(@marcelderadmin)
Trusted Member
Joined: 5 years ago

ok turns out i need to run my function before the main thing so i can edit request data to be status 1 then its held back for moderation

Reply