WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
359 | ); |
360 | did_action( 'init' ) && $scripts->localize( 'mediaelement', '_wpmejsSettings', |
361 | /** |
362 | * Filter the MediaElement configuration settings. |
363 | * |
364 | * @since 4.4.0 |
365 | * |
366 | * @param array $mejs_settings MediaElement settings array. |
367 | */ |
368 | apply_filters( 'mejs_settings', $mejs_settings ) |
369 | ); |
370 |
|
371 | $scripts->add( 'froogaloop', "/wp-includes/js/mediaelement/froogaloop.min.js", array(), '2.0' ); |
372 | $scripts->add( 'wp-playlist', "/wp-includes/js/mediaelement/wp-playlist$suffix.js", array( 'wp-util', 'backbone', 'mediaelement' ), false, 1 ); |
373 |
|
374 | $scripts->add( 'zxcvbn-async', "/wp-includes/js/zxcvbn-async$suffix.js", array(), '1.0' ); |
375 | did_action( 'init' ) && $scripts->localize( 'zxcvbn-async', '_zxcvbnSettings', array( |
376 | 'src' => empty( $guessed_url ) ? includes_url( '/js/zxcvbn.min.js' ) : $scripts->base_url . '/wp-includes/js/zxcvbn.min.js', |
377 | ) ); |