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 |
---|---|
1106 | ); |
1107 |
|
1108 | $scripts->add( 'mediaelement-vimeo', '/wp-includes/js/mediaelement/renderers/vimeo.min.js', array( 'mediaelement' ), '4.2.17', 1 ); |
1109 | $scripts->add( 'wp-mediaelement', "/wp-includes/js/mediaelement/wp-mediaelement$suffix.js", array( 'mediaelement' ), false, 1 ); |
1110 | $mejs_settings = array( |
1111 | 'pluginPath' => includes_url( 'js/mediaelement/', 'relative' ), |
1112 | 'classPrefix' => 'mejs-', |
1113 | 'stretching' => 'responsive', |
1114 | /** This filter is documented in wp-includes/media.php */ |
1115 | 'audioShortcodeLibrary' => apply_filters( 'wp_audio_shortcode_library', 'mediaelement' ), |
1116 | /** This filter is documented in wp-includes/media.php */ |
1117 | 'videoShortcodeLibrary' => apply_filters( 'wp_video_shortcode_library', 'mediaelement' ), |
1118 | ); |
1119 | did_action( 'init' ) && $scripts->localize( |
1120 | 'mediaelement', |
1121 | '_wpmejsSettings', |
1122 | /** |
1123 | * Filters the MediaElement configuration settings. |
1124 | * |