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 |
---|---|
209 | */ |
210 | public function set_quality( $quality ) { |
211 | /** |
212 | * Filter the default quality setting. |
213 | * |
214 | * @since 3.5.0 |
215 | * |
216 | * @param int $quality Quality level between 0 (low) and 100 (high). |
217 | */ |
218 | $this->quality = apply_filters( 'wp_editor_set_quality', $quality ); |
219 |
|
220 | return ( (bool) $this->quality ); |
221 | } |
222 |
|
223 | /** |
224 | * Returns preferred mime-type and extension based on provided |
225 | * file's extension and mime, or current file's extension and mime. |
226 | * |
227 | * Will default to $this->default_mime_type if requested is not supported. |