Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $options = [
- 'theme_my_login' => [
- 'allow_update' => true,
- 'dismissed_notices' => true,
- ],
- 'wordpress_api_key' => '1', // Akismet API Key.
- 'akismet_comment_form_privacy_notice' => 'hide',
- 'akismet_strictness' => true,
- ];
- foreach ( $options as $option_name => $option_data ) {
- $option = get_option( $option_name );
- if ( $option && is_array( $option ) ) {
- $option_data = array_replace_recursive( $option, $option_data );
- }
- update_option( $option_name, $option_data );
- }
Add Comment
Please, Sign In to add comment