W3cubDocs

/WordPress

apply_filters( 'wp_sprintf', string $fragment, string $arg )

Filters a fragment from the pattern passed to wp_sprintf().

Description

If the fragment is unchanged, then sprintf() will be run on the fragment.

Parameters

$fragment

(string) A fragment from the pattern.

$arg

(string) The argument.

Source

File: wp-includes/formatting.php

View on Trac

Changelog

Version Description
2.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_sprintf