wp_sprintf WordPress Filter Hook

The wp_sprintf hook allows you to modify the output of a sprintf function. This can be useful for internationalization or for customizing the output of a sprintf function.

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.


Top ↑

Parameters

$fragment

(string)A fragment from the pattern.

$arg

(string)The argument.


Top ↑

Source

File: wp-includes/formatting.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More