'no', 'aisp_custom_payment_method_2_enabled' => 'no', 'aisp_custom_payment_method_3_enabled' => 'no', ); foreach ( $default_settings as $option_name => $value ) { if ( false === get_option( $option_name ) ) { add_option( $option_name, $value ); } } $enabled = array( get_option( 'aisp_custom_payment_method_1_enabled' ), get_option( 'aisp_custom_payment_method_2_enabled' ), get_option( 'aisp_custom_payment_method_3_enabled' ), ); if ( ! in_array( 'yes', $enabled, true ) ) { update_option( 'aisp_custom_payment_method_1_enabled', 'yes' ); } } register_activation_hook( __FILE__, 'aispcpm_set_default_settings' );