do_action_ref_array ( string $event_name, array $args );
This construct fires the specified event, which means it loops through the event registry lookup table and calls each registered callback one-by-one. The callbacks are pre-registered for this event using
Note: this construct is identical to
do_action, except that all the arguments to be passed to the callbacks are wrapped into one array of arguments. Otherwise, the code is identical and it works the same.
- The name of the event (filter hook) to fire.
- An array of arguments to pass to each registered callback.
It does not return anything, which is the main difference between an action and filter event.
Whoever says that coding is hard, just smack them.
More coming soon…keep checking back.
These are the PHP constructs used in WordPress Core for