Unable to Update Buddypress Database Tables via HTML Code
-
The goal is to find and replace thing1 with thing2 in the wp_bp_activity “content” table. This exact code works when I use it to change the standard wp_ tables, but does not when trying to update the buddypress bp_ prefixed tables. What am I doing wrong here??
global $wpdb, $bp; $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->bp_activity} SET content = replace(content, %s, %s)", 'thing1', 'thing2' ) );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.