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 |
---|---|
195 | * Sets Image Compression quality on a 1-100% scale. |
196 | * |
197 | * @since 3.5.0 |
198 | * @access public |
199 | * |
200 | * @param int $quality Compression Quality. Range: [1,100] |
201 | * @return boolean |
202 | */ |
203 | public function set_quality( $quality ) { |
204 | $this->quality = apply_filters( 'wp_editor_set_quality', $quality ); |
205 |
|
206 | return ( (bool) $this->quality ); |
207 | } |
208 |
|
209 | /** |
210 | * Returns preferred mime-type and extension based on provided |
211 | * file's extension and mime, or current file's extension and mime. |
212 | * |
213 | * Will default to $this->default_mime_type if requested is not supported. |