-
Notifications
You must be signed in to change notification settings - Fork 80
activitypub_migrate
github-actions[bot] edited this page Aug 27, 2025
·
9 revisions
Fires when the system has to be migrated.
/**
* Fires when the system has to be migrated.
*
* @param string $version_from_db
* @param string $target_version
* @return string The filtered value.
*/
function my_activitypub_migrate_callback( string $version_from_db, string $target_version ) {
// Your code here.
return $version_from_db;
}
add_filter( 'activitypub_migrate', 'my_activitypub_migrate_callback', 10, 2 );
-
string
$version_from_db
The version from which to migrate. -
string
$target_version
The target version to migrate to.
\do_action( 'activitypub_migrate', $version_from_db, ACTIVITYPUB_PLUGIN_VERSION )
Follow @[email protected] for updates and news.