Hi again!
I'm following the answer they gave me on the pre-order page of the plugin, which said this:
You can use the hook-code proviede below:
add_filter(“mycred_add”, function ($execute, $data) {
if (($ref = wpfval($data, ‘ref’)) && ($forumid = intval(wpfval(WPF()->current_object, ‘forumid’))) && $ref === ‘wpforo_add_post’ && in_array($forumid, array(1, 2, 3))) {
$execute = false;
}
return $execute;
}, 10, 2);Just change the value of the boldly marked part. Replace those with the Forum IDs there you don’t need to add the points.
My question is, where is this code added? Since I put it in the functions of my theme, adding the ID of the forums in which I do not want give points, but it does not work.
Thanks!