• Is there possibility programmatically delete all connections for post? I know I can delete some certain connections (from_id and to_id) but if I want just delete all? I think I could just query all connections and save ids and then delete each by each but I feel this would make it slower.

Viewing 1 replies (of 1 total)
  • Plugin Author Anh Tran

    (@rilwis)

    Yes, you can do this with raw SQL like this:

    global $wpdb;
    $wpdb->delete( "DELETE FROM $wpdb->mb_relationships WHERE <code>from</code> = 123" );
Viewing 1 replies (of 1 total)
  • The topic ‘Delete all relationships’ is closed to new replies.