-
King Ding started the topic Send message after Woocommerce checkout in the forum How-to & Troubleshooting 3 years, 4 months ago
I’ve created a function that sends a message to the current user after checking out with a woocommerce product. However, this only works if the user already has an account prior to checking out. Users of my website cannot create an account prior to checkout though, they must create their account at the checkout.
I’ve tried hooks such…[Read more]
-
King Ding replied to the topic Retrieving parent comment id via sql returns blank? in the forum How-to & Troubleshooting 4 years, 2 months ago
Sorry to tripple post, but there’s no way I can edit my post. I have discovered that I simply forgot to surround {$parent_comment->comment_content} with ”. However, I welcome your opinions on better alternatives to me query!
-
King Ding replied to the topic Retrieving parent comment id via sql returns blank? in the forum How-to & Troubleshooting 4 years, 2 months ago
After some tests, it seems that
$parent_comment->comment_content
in the sql line is the issue. This is me trying to retrieve a number (id) from the table: bp_activity IF the parent comment (recorded in the table comments > comment_content) has the same content as an entry recorded in bp_activity. Perhaps there’s a better way to be doing this ? 🤔… -
King Ding replied to the topic How to add custom variable to bp_activity_add ? in the forum How-to & Troubleshooting 4 years, 2 months ago
Thanks for your time and answer @shanebp! 🙂
-
King Ding started the topic Retrieving parent comment id via sql returns blank? in the forum How-to & Troubleshooting 4 years, 2 months ago
In this function, I want
item_id => 'A NUMBER'
. That number can be found on the corresponding table row retrieved from my database. I have tested the sql and it retrieves the intended values, but in the context of this function, it gives a blank value?My apologies if there’s a lot of information that’s unnecessary…[Read more]
-
King Ding started the topic How to add custom variable to bp_activity_add ? in the forum How-to & Troubleshooting 4 years, 2 months ago
I’m creating a plugin that records wordpress comments as a bp_activity post. I’ve been successful at recording the activity, but there’s just one thing that I want to add… a new possible value! Here’s the plugin in a nutshell:
function kd_record_activity($comment_id, $approval) {
[Read more]
if($approval == 1) {
$comment =…
@dazzerr
Active 3 months, 3 weeks ago