Skip to content
Docs
Get RestroPress

Filter

rpress_importer_url

Updated
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#

ParameterTypeDescription
$urlstringImporter URL.
$sourcestringSource 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), in rpress_importer_url()
Was this page helpful?