Description
Copy settings from the source site to the target site... the current site
Usage
oik_ms_copy_settings_to_site( $alt_source, $alt_target, $site_id );Parameters
- $alt_source
- ( mixed ) required –
- $alt_target
- ( mixed ) required –
- $site_id
- ( mixed ) required –
Returns
voidSource
File name: oik-ms/admin/oik-ms.phpLines:
1 to 11 of 11
function oik_ms_copy_settings_to_site( $alt_source, $alt_target, $site_id ) { p( "Copying settings from $site_id. Source $alt_source, target $alt_target" ); $sets = array ( "bw_options" , "bw_options1" , "bw_options2" ); switch_to_blog( $site_id ); $new_options = get_option( $sets[ $alt_source ] ); restore_current_blog(); update_option( $sets[ $alt_target ], $new_options ); }View on GitHub
Called by
Invoked by
Calls
Call hooks
API Letters:
