public static function get_plugin_slug_by_path($path) {
		if (is_string($path) && $path) {
			$slug = $path;
			while (false !== strpos($slug, '/')) {
				$slug = dirname($slug);
			}
			$slug = preg_replace('/\.php$/i', '', $slug);

			return $slug ? $slug : false;
		}

		return false;
	}
public static function get_plugin_slug_by_path($path) {
		if (is_string($path) && $path) {
			$slug = $path;
			while (false !== strpos($slug, '/')) {
				$slug = dirname($slug);
			}
			$slug = preg_replace('/\.php$/i', '', $slug);

			return $slug ? $slug : false;
		}

		return false;
	}
public static function get_plugin_slug_by_path ( $ path ) { if ( is_string ( $ path ) && $ path ) { $ slug = $ path ; while ( false !== strpos ( $ slug , '/' ) ) { $ slug = dirname ( $ slug ) ; } $ slug = preg_replace ( '/\.php$/i' , '' , $ slug ) ; return $ slug ? $ slug : false ; } return false ; }
Extract Plugin Slug From Path

@param string $path Path.
@return string|bool Slug or false.
Extract Plugin Slug From Path