Skip to content

Instantly share code, notes, and snippets.

@boonebgorges
Created October 22, 2019 15:34
Show Gist options
  • Save boonebgorges/1baa9e7e450b0a38bd93814321ca9003 to your computer and use it in GitHub Desktop.
Save boonebgorges/1baa9e7e450b0a38bd93814321ca9003 to your computer and use it in GitHub Desktop.
Run BP 5.0 upgrades if they don't happen automatically
<?php
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
require_once( buddypress()->plugin_dir . '/bp-core/admin/bp-core-admin-schema.php' );
bp_update_to_5_0();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment