Use a spacebar or arrow keys to navigate
Design Engineer @ Automattic
Arguably, hooks are one of WordPress' most powerful, and most important, features.
While there are always places in Core where an action or filter would be useful, this is much moreso the case in our plugins.
Don't take my word for it. What does Brad Williams think?
Brad was talking specifically about Jetpack, but it is hardly the only plugin that lacks sufficient hooks.
We're all probably familiar with
Their counterparts aren't much more complicated.
$tag– the name of the action that other code can hook to.
$arg– datum made available to the function that executes when this action is called.
<?php do_action( 'after_setup_theme' ); ?>
$tag– the name of the filter to hook to.
$value– the value to be filtered.
<?php $excerpt_length = apply_filters('excerpt_length', 55); ?>