HEX
Server: Apache
System: Linux 162-240-236-42.bluehost.com 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
User: bt667 (1004)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home/bt667/public_html/wp-content/plugins/mvp_upselling/includes/mvp-upselling-helper.php
<?php
/**

 * @since      1.1.0

 * @package    MVP Upselling

 * @subpackage MVP Upselling/includes

 * @author     Rohit Sharma

 */

class MVP_Upselling_Helper {

	protected $loader,$plugin_name,$version;

	public function __construct() {

		$this->plugin_name 	= 'MVP Upselling';

		$this->version 		= '1.1.0';

	}

	public function clean($string) {

		$string = str_replace(' ', '-', $string); // Replaces all spaces with hyphens.

		return preg_replace('/[^A-Za-z0-9\-]/', '', $string); // Removes special chars.

	}

}