WordPress at Your Fingertips

trailingslashit() WP 1.0

Appends a trailing slash.

{{desc}}

No Hooks.

Return

String. String with trailing slash added.

Usage

trailingslashit( $string );
$string(string) (required)
What to add the trailing slash to.

Code of trailingslashit() WP 5.8.3

function trailingslashit( $string ) {
	return untrailingslashit( $string ) . '/';
}

Formatting

No comments
    Log In