Description
Filter the data of the settings export file, created with the Export button of the Settings page. Add-ons can add their own settings under their own key and import them with the cbc_settings_imported action. The YouTube API key, the OAuth credentials and the license key are never exported. See Export and import settings. Available since Video Hub 2.3.5.
Parameters
- $data
- (array)(required) The export data, with the keys
site,settingsandplayer.
Examples
Add the settings of an add-on to the export file.
add_filter( 'cbc_settings_export_data', function( $data ) {
$data['my_addon'] = get_option( 'my_addon_settings', [] );
return $data;
} );