Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_editor_set_quality

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

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.