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 |
|---|---|
| 3903 | require_once ABSPATH . WPINC . '/class-wp-image-editor-imagick.php'; |
| 3904 | /** |
| 3905 | * Filters the list of image editing library classes. |
| 3906 | * |
| 3907 | * @since 3.5.0 |
| 3908 | * |
| 3909 | * @param string[] $image_editors Array of available image editor class names. Defaults are |
| 3910 | * 'WP_Image_Editor_Imagick', 'WP_Image_Editor_GD'. |
| 3911 | */ |
| 3912 | $implementations = apply_filters( 'wp_image_editors', array( 'WP_Image_Editor_Imagick', 'WP_Image_Editor_GD' ) ); |
| 3913 | $supports_input = false; |
| 3914 | |
| 3915 | foreach ( $implementations as $implementation ) { |
| 3916 | if ( ! call_user_func( array( $implementation, 'test' ), $args ) ) { |
| 3917 | continue; |
| 3918 | } |
| 3919 | |
| 3920 | // Implementation should support the passed mime type. |
| 3921 | if ( isset( $args['mime_type'] ) && |