Filter
rpress_importer_url
On this page
Filters the URL of the Switch to RestroPress importer screen.
The default is edit.php with post_type fooditem and page rpress-switch, plus a source query argument when a source is preselected. Used for the setup wizard and the links on the importer screens.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$url | string | Importer URL. |
$source | string | Source ID to preselect, or an empty string. |
Return value#
string. Importer URL.
Example#
add_filter( 'rpress_importer_url', 'my_importer_url', 10, 2 );
function my_importer_url( $url, $source ) {
return $url;
}
Source#
Applied in:
includes/features/importer/loader.php(line 156), inrpress_importer_url()
Was this page helpful?
