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 |
---|---|
356 | ); |
357 | did_action( 'init' ) && $scripts->localize( 'mediaelement', '_wpmejsSettings', |
358 | /** |
359 | * Filter the MediaElement configuration settings. |
360 | * |
361 | * @since 4.4.0 |
362 | * |
363 | * @param array $mejs_settings MediaElement settings array. |
364 | */ |
365 | apply_filters( 'mejs_settings', $mejs_settings ) |
366 | ); |
367 |
|
368 | $scripts->add( 'froogaloop', "/wp-includes/js/mediaelement/froogaloop.min.js", array(), '2.0' ); |
369 | $scripts->add( 'wp-playlist', "/wp-includes/js/mediaelement/wp-playlist.js", array( 'wp-util', 'backbone', 'mediaelement' ), false, 1 ); |
370 |
|
371 | $scripts->add( 'zxcvbn-async', "/wp-includes/js/zxcvbn-async$suffix.js", array(), '1.0' ); |
372 | did_action( 'init' ) && $scripts->localize( 'zxcvbn-async', '_zxcvbnSettings', array( |
373 | 'src' => empty( $guessed_url ) ? includes_url( '/js/zxcvbn.min.js' ) : $scripts->base_url . '/wp-includes/js/zxcvbn.min.js', |
374 | ) ); |