Royal WordPress Backup, Restore & Migration Plugin 1.0.27 has 17 actions and 18 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Royal WordPress Backup, Restore & Migration Plugin fires an action
add_action( 'royalbr_backup_completed', function( $timestamp, $backup_set, $file_nonce ) {
// Your code runs here.
}, 10, 3 );
// Change a value Royal WordPress Backup, Restore & Migration Plugin is about to use
add_filter( 'royalbr_pre_restore_files', function( $entities, $backup_set, $nonce, $components ) {
// Change $entities here.
return $entities;
}, 10, 4 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
royalbr_backup_completed
action/** * Fires after backup is saved to history. */ do_action( 'royalbr_backup_completed', $timestamp, $backup_set, $this->file_nonce ); -
royalbr_pre_restore_files
filter/** * Filter entities before restore - allows premium features to download remote * files. */ apply_filters( 'royalbr_pre_restore_files', $entities, $backup_set, $nonce, $components ); -
royalbr_reminder_pages
filter/** * Filters the list of admin page hooks where the backup reminder should be * shown. */ apply_filters( 'royalbr_reminder_pages', $reminder_pages, $hook ); -
do_action( 'royalbr_restorer_restore_options', $this->restore_options ); -
https_local_ssl_verify
filterapply_filters( 'https_local_ssl_verify', false ); -
royalbr_accept_archivename
filterapply_filters( 'royalbr_accept_archivename', array() ); -
royalbr_after_backup_name
actiondo_action( 'royalbr_after_backup_name', $nonce, $current_name ); -
do_action( 'royalbr_after_backup_settings' ); -
apply_filters( "royalbr_backup_makezip_{$youwhat}", $whichdir, $backup_file_basename, $index ); -
apply_filters( 'royalbr_backupable_file_entities', $arr, $full_info ); -
apply_filters( 'royalbr_backupable_file_entities_final', $arr, $full_info ); -
do_action( 'royalbr_before_backup_settings' ); -
royalbr_blog_name
filterapply_filters( 'royalbr_blog_name', $site_name ); -
royalbr_delete_media_uploads
actiondo_action( 'royalbr_delete_media_uploads', $this->delete_count ); -
royalbr_delete_uploads
actiondo_action( 'royalbr_delete_uploads', $this->delete_count ); -
royalbr_exclude_directory
filterapply_filters( 'royalbr_exclude_directory', false, $fullpath, $use_path_when_storing ); -
royalbr_foreign_dbfilename
filterapply_filters( 'royalbr_foreign_dbfilename', false, $this->royalbr_foreign, $this->royalbr_backup_set, $working_dir_localpath, $separatedb ); -
royalbr_fs_loaded
actiondo_action( 'royalbr_fs_loaded' ); -
royalbr_get_option
filterapply_filters( 'royalbr_get_option', $ret, $option, $default ); -
apply_filters( 'royalbr_include_others_exclude', $exclude ); -
apply_filters( 'royalbr_include_uploads_exclude', $exclude ); -
apply_filters( 'royalbr_include_wpcore_exclude', $exclude ); -
royalbr_logline
filterapply_filters( 'royalbr_logline', $line, $this->file_nonce, $level, $uniq_id, $destination ); -
apply_filters( 'royalbr_protected_hosting_paths', $protected_patterns ); -
royalbr_restore_completed
actiondo_action( 'royalbr_restore_completed' ); -
royalbr_restore_db_pre
actiondo_action( 'royalbr_restore_db_pre' ); -
do_action( 'royalbr_restore_db_record_old_abspath', $this->old_abspath ); -
do_action( 'royalbr_restore_db_record_old_content', $this->old_content ); -
do_action( 'royalbr_restore_db_record_old_home', $this->old_home ); -
do_action( 'royalbr_restore_db_record_old_siteurl', $this->old_siteurl ); -
do_action( 'royalbr_restore_db_record_old_uploads', $this->old_uploads ); -
royalbr_restore_table_prefix
filterapply_filters( 'royalbr_restore_table_prefix', $wpdb->prefix ); -
royalbr_restored_db
actiondo_action( 'royalbr_restored_db', $db_restore_info, $this->final_import_table_prefix ); -
royalbr_restored_db_table
actiondo_action( 'royalbr_restored_db_table', $table, $import_table_prefix, $engine ); -
royalbr_update_option
filterapply_filters( 'royalbr_update_option', $value, $option, $use_cache );
Generated from Royal WordPress Backup, Restore & Migration Plugin's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: