image_size_names_choose
This filter is documented in wp-admin/includes/media.php.
Description
Parameters (1)
- 0. $array (callback) =>
array( $this, 'media_manager_image_sizes' )
- The array.
Usage
- To run the hook, copy the example below.
- $array = apply_filters( 'image_size_names_choose', $array );
- if ( !empty( $array ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the image_size_names_choose callback
- function filter_image_size_names_choose( $array ) {
- // make filter magic happen here...
- return $array;
- };
- // add the filter
- add_filter( 'image_size_names_choose', 'filter_image_size_names_choose', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'image_size_names_choose', 'filter_image_size_names_choose', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /modules/theme-tools/site-logo/inc/class-site-logo.php
- add_filter( 'image_size_names_choose', array( $this, 'media_manager_image_sizes' ) );