PO::trim_quotes()public staticWP 1.0

Method of the class: PO{}

No Hooks.

Return

String.

Usage

$result = PO::trim_quotes( $s );
$s(string) (required)
-

PO::trim_quotes() code WP 6.1.1

public static function trim_quotes( $s ) {
	if ( '"' === substr( $s, 0, 1 ) ) {
		$s = substr( $s, 1 );
	}
	if ( '"' === substr( $s, -1, 1 ) ) {
		$s = substr( $s, 0, -1 );
	}
	return $s;
}