true, 'template' => true, 'gutenberg_builder' => true, 'elementor_builder' => true, 'bricks_builder' => false, 'debugger_mode' => false, ); add_option( 'wkit_settings_panel', $settings_options ); } $wkit_builder = get_option( 'wkit_builder', false ); if ( empty( $wkit_builder ) ) { add_option( 'wkit_builder', array( 'WDesignKit' ), '', 'yes' ); } } /** * Check Error and Get Response Body Data * * @param string $super_global it is main party of array & file. * @param string $key it is static value for file and array key. * */ public static function get_super_global_value( $super_global, $key ) { if ( ! isset( $super_global[ $key ] ) ) { return null; } if ( $_FILES === $super_global ) { $super_global[ $key ]['name'] = sanitize_file_name( $super_global[ $key ]['name'] ); return $super_global[ $key ]; } return wp_kses_post_deep( wp_unslash( $super_global[ $key ] ) ); } /** * Check Error and Get Response Body Data * * @param string $data it is main party of array. * @param string $key it is static value for file and array key. * */ public static function sanitize_array_recursive( $data, $key ) { if ( is_array( $data[ $key ] ) ) { foreach ( $data[ $key ] as $index => $value ) { $data[ $index ] = self::sanitize_array_recursive( $value ); } return $data; } return sanitize_text_field( $data[ $key ] ); } } Wdkit_Data_Hooks::get_instance(); }