Utilities::cleanup_icon_path( $dirname,  $icon,  $file_name )


Parameters Parameters

$dirname

(Required)

$icon

(Required)

$file_name

(Required)


Top ↑

Return Return

(array|string|string[])


Source Source

File: src/core/class-utilities.php

	public static function cleanup_icon_path( $dirname, $icon, $file_name ) {
		// path relative to plugin
		return str_replace(
			array(
				dirname( $dirname ),
				$icon,
			),
			'',
			$file_name
		);
	}