wphooks.info - {$args}

{$args}

(trunk - 5.1-alpha-44286)

The hook occurs in the following 3 files

wp-includes/class-wp-hook.php:
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
		return $value;
	}

	/**
	 * Executes the callback functions hooked on a specific action hook.
	 *
	 * @since 4.7.0
	 *
	 * @param mixed $args Arguments to pass to the hook callbacks.
	 */
	public function do_action( $args ) {
		$this->doing_action = true;
		$this->apply_filters( '', $args );

		// If there are recursive calls to the current action, we haven't finished it until we get to the last one.
		if ( ! $this->nesting_level ) {
			$this->doing_action = false;
		}
	}
wp-includes/plugin.php:
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
	$args = array();
	if ( is_array( $arg ) && 1 == count( $arg ) && isset( $arg[0] ) && is_object( $arg[0] ) ) { // array(&$this)
		$args[] =& $arg[0];
	} else {
		$args[] = $arg;
	}
	for ( $a = 2, $num = func_num_args(); $a < $num; $a++ ) {
		$args[] = func_get_arg( $a );
	}

	$wp_filter[ $tag ]->do_action( $args );

	array_pop( $wp_current_filter );
}

/**
 * Retrieve the number of times an action is fired.
 *
 * @since 2.1.0
 *
wp-includes/plugin.php:
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
		if ( isset( $wp_filter['all'] ) ) {
			array_pop( $wp_current_filter );
		}
		return;
	}

	if ( ! isset( $wp_filter['all'] ) ) {
		$wp_current_filter[] = $tag;
	}

	$wp_filter[ $tag ]->do_action( $args );

	array_pop( $wp_current_filter );
}

/**
 * Check if any action has been registered for a hook.
 *
 * @since 2.5.0
 *