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 |
|---|---|
| 370 | ); |
| 371 | did_action( 'init' ) && $scripts->localize( 'mediaelement', '_wpmejsSettings', |
| 372 | /** |
| 373 | * Filters the MediaElement configuration settings. |
| 374 | * |
| 375 | * @since 4.4.0 |
| 376 | * |
| 377 | * @param array $mejs_settings MediaElement settings array. |
| 378 | */ |
| 379 | apply_filters( 'mejs_settings', $mejs_settings ) |
| 380 | ); |
| 381 | |
| 382 | $scripts->add( 'froogaloop', "/wp-includes/js/mediaelement/froogaloop.min.js", array(), '2.0' ); |
| 383 | $scripts->add( 'wp-playlist', "/wp-includes/js/mediaelement/wp-playlist$suffix.js", array( 'wp-util', 'backbone', 'mediaelement' ), false, 1 ); |
| 384 | |
| 385 | $scripts->add( 'zxcvbn-async', "/wp-includes/js/zxcvbn-async$suffix.js", array(), '1.0' ); |
| 386 | did_action( 'init' ) && $scripts->localize( 'zxcvbn-async', '_zxcvbnSettings', array( |
| 387 | 'src' => empty( $guessed_url ) ? includes_url( '/js/zxcvbn.min.js' ) : $scripts->base_url . '/wp-includes/js/zxcvbn.min.js', |
| 388 | ) ); |