benecaster_migration_wizard_intercept_csv_upload
Fires before shadow records are created during a CSV import. When the filter returns a non-empty string, the REST endpoint signals an intercept and redirects to that URL instead of creating shadow records. The Migration Wizard add-on hooks this filter to route CSV uploads through its own multi-step wizard UI when installed.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$url |
string |
— | Admin URL to redirect to; return empty string to allow normal processing |
$show_id |
int |
— | ID of the show |
$platform |
string |
— | Import platform identifier (e.g. 'patreon', 'supercast') |
Returns:
string
Example
add_filter( 'benecaster_migration_wizard_intercept_csv_upload', function( $url, $show_id, $platform ) {
// Route all Patreon imports through a custom pre-processing wizard.
if ( 'patreon' === $platform ) {
return admin_url( 'admin.php?page=my-patreon-wizard&show_id=' . $show_id );
}
return $url;
}, 10, 3 );
Need this built rather than just documented? See our services →