Action
rpress_register_batch_importer
Fires in the admin so extensions can register their batch importers.
Runs on plugins_loaded, only when is_admin() is true. Use it to load and register custom importer classes derived from RPRESS_Batch_Import.
Example#
function my_register_importer() {
require_once plugin_dir_path( __FILE__ ) . 'class-my-importer.php';
}
add_action( 'rpress_register_batch_importer', 'my_register_importer' );
Notes#
No arguments are passed. Runs for every admin request, including AJAX, since plugins_loaded precedes the AJAX import handlers.
Source#
Fired from:
includes/admin/import/import-actions.php(line 21), inrpress_register_batch_importers()
See also#
Was this page helpful?
