WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
247 | * |
248 | */ |
249 | function _nc( $single, $plural, $number, $domain = 'default' ) { |
250 | return before_last_bar( _n( $single, $plural, $number, $domain ) ); |
251 | } |
252 |
|
253 | function _nx($single, $plural, $number, $context, $domain = 'default') { |
254 | $translations = &get_translations_for_domain( $domain ); |
255 | $translation = $translations->translate_plural( $single, $plural, $number, $context ); |
256 | return apply_filters( 'ngettext_with_context ', $translation, $single, $plural, $number, $context, $domain ); |
257 | } |
258 |
|
259 | /** |
260 | * @deprecated Use _n_noop() |
261 | */ |
262 | function __ngettext_noop() { |
263 | _deprecated_function( __FUNCTION__, '2.8', '_n_noop()' ); |
264 | $args = func_get_args(); |
265 | return call_user_func_array('_n_noop', $args); |