PO::trim_quotespublic staticWP 1.0

Method of the class: PO{}

No Hooks.

Returns

String.

Usage

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

PO::trim_quotes() code WP 6.8.3

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