Filter
rpress_import_sources
On this page
Filters the registered import sources.
Applied to the list of sources after they are registered and sorted by priority. Sources are keyed by id; each entry holds the arguments given to rpress_register_import_source(). Use it to remove or reorder sources.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$sources | array | Registered sources keyed by source id. |
Return value#
array. Sources keyed by id.
Example#
add_filter( 'rpress_import_sources', 'my_import_sources', 10, 1 );
function my_import_sources( $sources ) {
unset( $sources['woocommerce'] );
return $sources;
}
Source#
Applied in:
includes/features/importer/loader.php(line 127), inrpress_get_import_sources()
See also#
Was this page helpful?
