Skip to content
Docs
Get RestroPress

Action

rpress_tools_import_export_before

Updated
On this page

Fires before the Import / Export tools page content is displayed.

Runs at the start of the legacy Import / Export tool screen, after the capability check. That screen is no longer a primary Tools tab; it only appears when the import_export tab is requested directly in the URL, and it shows links to the menu and settings import and export screens.

Example#

function my_before_import_export() {
	echo '<p>' . esc_html__( 'Back up your site before importing.', 'my-plugin' ) . '</p>';
}
add_action( 'rpress_tools_import_export_before', 'my_before_import_export' );

Source#

Fired from:

  • includes/admin/tools.php (line 839), in rpress_tools_import_export_display()

See also#

Was this page helpful?