Royal WordPress Backup, Restore & Migration Plugin icon
Backup & Migration

Royal WordPress Backup, Restore & Migration Plugin hooks reference

  • By WP Royal
  • v1.0.27
  • Updated

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.

functions.phpyour child theme
// 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

  • royal-backup-reset.php line 5238
    /**
     * Fires after backup is saved to history.
     */
    do_action( 'royalbr_backup_completed', $timestamp, $backup_set, $this->file_nonce );
  • includes/class-royalbr-restore.php line 4221
    /**
     * Filter entities before restore - allows premium features to download remote
     * files.
     */
    apply_filters( 'royalbr_pre_restore_files', $entities, $backup_set, $nonce, $components );
  • royal-backup-reset.php line 838
    /**
     * Filters the list of admin page hooks where the backup reminder should be
     * shown.
     */
    apply_filters( 'royalbr_reminder_pages', $reminder_pages, $hook );
  • includes/class-royalbr-restore.php line 806 · used in 2 places
    do_action( 'royalbr_restorer_restore_options', $this->restore_options );
  • royal-backup-reset.php line 5265
    apply_filters( 'https_local_ssl_verify', false );
  • includes/class-royalbr-restore.php line 2694
    apply_filters( 'royalbr_accept_archivename', array() );
  • royal-backup-reset.php line 1672
    do_action( 'royalbr_after_backup_name', $nonce, $current_name );
  • includes/admin-page.php line 501
    do_action( 'royalbr_after_backup_settings' );
  • includes/class-royalbr-backup.php line 3494
    apply_filters( "royalbr_backup_makezip_{$youwhat}", $whichdir, $backup_file_basename, $index );
  • royal-backup-reset.php line 5332
    apply_filters( 'royalbr_backupable_file_entities', $arr, $full_info );
  • royal-backup-reset.php line 5347
    apply_filters( 'royalbr_backupable_file_entities_final', $arr, $full_info );
  • includes/admin-page.php line 353
    do_action( 'royalbr_before_backup_settings' );
  • includes/class-royalbr-backup.php line 662
    apply_filters( 'royalbr_blog_name', $site_name );
  • includes/class-royalbr-reset.php line 757
    do_action( 'royalbr_delete_media_uploads', $this->delete_count );
  • includes/class-royalbr-reset.php line 723
    do_action( 'royalbr_delete_uploads', $this->delete_count );
  • includes/class-royalbr-backup.php line 1993
    apply_filters( 'royalbr_exclude_directory', false, $fullpath, $use_path_when_storing );
  • includes/class-royalbr-restore.php line 2710
    apply_filters( 'royalbr_foreign_dbfilename', false, $this->royalbr_foreign, $this->royalbr_backup_set, $working_dir_localpath, $separatedb );
  • royal-backup-reset.php line 95
    do_action( 'royalbr_fs_loaded' );
  • includes/class-royalbr-options.php line 34
    apply_filters( 'royalbr_get_option', $ret, $option, $default );
  • royal-backup-reset.php line 5389
    apply_filters( 'royalbr_include_others_exclude', $exclude );
  • royal-backup-reset.php line 5364
    apply_filters( 'royalbr_include_uploads_exclude', $exclude );
  • royal-backup-reset.php line 5427
    apply_filters( 'royalbr_include_wpcore_exclude', $exclude );
  • royal-backup-reset.php line 5620
    apply_filters( 'royalbr_logline', $line, $this->file_nonce, $level, $uniq_id, $destination );
  • includes/class-royalbr-restore.php line 5397
    apply_filters( 'royalbr_protected_hosting_paths', $protected_patterns );
  • includes/class-royalbr-restore.php line 4064
    do_action( 'royalbr_restore_completed' );
  • includes/class-royalbr-restore.php line 2666
    do_action( 'royalbr_restore_db_pre' );
  • includes/class-royalbr-restore.php line 3051
    do_action( 'royalbr_restore_db_record_old_abspath', $this->old_abspath );
  • includes/class-royalbr-restore.php line 3010
    do_action( 'royalbr_restore_db_record_old_content', $this->old_content );
  • includes/class-royalbr-restore.php line 3005
    do_action( 'royalbr_restore_db_record_old_home', $this->old_home );
  • includes/class-royalbr-restore.php line 2994
    do_action( 'royalbr_restore_db_record_old_siteurl', $this->old_siteurl );
  • includes/class-royalbr-restore.php line 3015
    do_action( 'royalbr_restore_db_record_old_uploads', $this->old_uploads );
  • includes/class-royalbr-restore.php line 4561
    apply_filters( 'royalbr_restore_table_prefix', $wpdb->prefix );
  • includes/class-royalbr-restore.php line 3557
    do_action( 'royalbr_restored_db', $db_restore_info, $this->final_import_table_prefix );
  • includes/class-royalbr-restore.php line 3774
    do_action( 'royalbr_restored_db_table', $table, $import_table_prefix, $engine );
  • includes/class-royalbr-options.php line 48
    apply_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: