add_action()
remove_action()
do_action()
do_action_ref_array()
do_action_deprecated()
(since 2.4)did_action()
doing_action()
has_action()
add_filter()
remove_filter()
apply_filters()
apply_filters_ref_array()
apply_filters_deprecated()
(since 2.4)doing_filter()
has_filter()
current_filter()
__return_true()
__return_false()
__return_null()
__return_zero()
__return_empty_array()
__return_empty_string()
trailingslashit()
untrailingslashit()
user_trailingslashit()
(since 2.6)absint()
(since 2.3)wp_json_encode()
(since 2.6)is_wp_error()
(since 2.3)Functions\stubEscapeFunctions()
. See: Pre-defined stubs for translation functionsβFunctions\stubTranslationFunctions()
. See: Pre-defined stubs for escaping functionsβ$did
will be correctly 1
(did_action()
in WordPress returns the number an action was done).$title
will be 'My Title'
, without the need of any intervention."the_title"
hook, so we expect that the title stay unchanged. And that's what happen.add_filter
), the Brain Monkey version of apply_filters
will still return the value unchanged, but will allow to test that apply_filters
has been called, how many times, with which callbacks and arguments are used.