insert( 'activitypub_blocks', array( 'actor_id' => $actor_id, 'blocked_actor_url' => $blocked_actor_url ) ); if ( !$res ) { return new \WP_Error( 'db_error', __( 'Error inserting block row', 'activitypub' ) ); } } function create_blocks_table() { global $wpdb; $wpdb->query( " CREATE TABLE IF NOT EXISTS activitypub_blocks( actor_id INT UNSIGNED NOT NULL, blocked_actor_url TEXT NOT NULL, FOREIGN KEY actor_fk(actor_id) REFERENCES activitypub_actors(id) ); " ); } ?>