wphooks.info - {$value}

{$value}

(trunk - 5.1-alpha-44286)

The hook occurs in the following 2 files

wp-includes/plugin.php:
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
		$wp_current_filter[] = $tag;
	}

	if ( empty( $args ) ) {
		$args = func_get_args();
	}

	// don't pass the tag name to WP_Hook
	array_shift( $args );

	$filtered = $wp_filter[ $tag ]->apply_filters( $value, $args );

	array_pop( $wp_current_filter );

	return $filtered;
}

/**
 * Execute functions hooked on a specific filter hook, specifying arguments in an array.
 *
wp-includes/class-wp-hook.php:
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
	/**
	 * Calls the callback functions added to a filter hook.
	 *
	 * @since 4.7.0
	 *
	 * @param mixed $value The value to filter.
	 * @param array $args  Arguments to pass to callbacks.
	 * @return mixed The filtered value after all hooked functions are applied to it.
	 */
	public function apply_filters( $value, $args ) {
		if ( ! $this->callbacks ) {
			return $value;
		}

		$nesting_level = $this->nesting_level++;

		$this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
		$num_args                           = count( $args );