Here it is: https://gist.github.com/rahularyan/376fb0f31adb81d783dfb82a9ce3829c
Thanks for getting back to me. Please link me to your FAQ, as I cannot find it. I am a little unclear in understanding your reply. I know that anspress is rendered using a shortcode – this is how I have implemented your plugin – I create a page in wordpress, style it with Divi builder then drop in the shortcode. It’s only the single question page that I have not managed to do this on. Is there a way of selecting a separate page to use for the single question page?
I’m missing something here. Even this doesn’t seem to work add_filter( ‘ap_activity_actions’, ‘new_ap_activity_actions’); function new_ap_activity_actions($args) { $args[’new_q’][’ref_type’][’verb’] = “Testing”; return $args; }
@rahul – can you provide a sample please ? Thanks
Thanks Rahul, I want to avoid overriding core files, which is why I’m asking. Can you please provide an example of the hook ? Regards
Hello, Please avoid overriding core files. Instead use hooks for your needs. I think you are trying to modify activity verb then you can use filter ap_activity_actions
Its not possible.
Found what I want to override. Is there a way I can override one class ?
Found what I needed in class-activity-helper.php – is there a way I can override this so that my changes are not overwritten on each update ?
Hi Rahul, Actually, ignore this. It appears to be caused by Relavanssi.