Description
Fires after the plugin settings were imported from an export file, with the Import button of the Settings page. Add-ons can read back the settings they added with the cbc_settings_export_data filter. Available since Video Hub 2.3.5.
Parameters
- $data
- (array)(required) The data of the imported file.
Examples
Import the settings of an add-on.
add_action( 'cbc_settings_imported', function( $data ) {
if ( isset( $data['my_addon'] ) && is_array( $data['my_addon'] ) ) {
update_option( 'my_addon_settings', $data['my_addon'] );
}
} );