Skip to:
Content
Pages
Categories
Search
Top
Bottom

Database Inserts

  • Hi,

    Where (which file, function etc) does BuddyPress create insert statements? I need it to use the _insert_replace_helper function in WP and it doesn’t seem to.

    I need to add the record id column with a value to the following statement and others, so as to ensure that a specific range of numbers is used as primary key for each table. I am hoping BuddyPress has a central database handler?

    `INSERT INTO wp_bp_group_documents (
    user_id,
    group_id,
    created_ts,
    modified_ts,
    file,
    name,
    description,
    featured
    ) VALUES (
    2, 7, 1327321941, 1327321941, ’1327321941-importbuddy.txt’, ‘Import Buddy Test’, ‘Just a test document.’, 0
    )`

Viewing 4 replies - 1 through 4 (of 4 total)
  • I think I have found the confluence – it seems BP always uses the “prepare” function in the wpdb class – that is where I will interfere!

    Ok, I thought I had it, but woe is me! I am stumped.

    I have looked at the BPDB class, but it seems to be not used – I renamed it in the source code, hoping to cause a PHP error to give me a clue as to where to start looking, but not a sausage.

    I have now resorted to trying to find data that I have input in the database – again, no luck! Is there any documentation anywhere which may shed light on how BP interacts with the database?

    Via $wpdb usage, in the -classes.php files.

    Also BPDB is used for the bbPress 1.x integration

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.