Skip to content
github-actions[bot] edited this page Jan 3, 2026 · 1 revision

Fires when the system has to be migrated.

Auto-generated Example

/**
 * Fires when the system has to be migrated.
 *
 * @param string $version_from_db 
 * @param string $target_version 
 */
function my_webmention_migrate_callback( string $version_from_db, string $target_version ) {
    // Your code here.
}
add_action( 'webmention_migrate', 'my_webmention_migrate_callback', 10, 2 );

Parameters

  • string $version_from_db The version from which to migrate.
  • string $target_version The target version to migrate to.

Files

\do_action( 'webmention_migrate', $version_from_db, WEBMENTION_VERSION )

← All Hooks

Clone this wiki locally