post_mime_types
Filters the default list of post mime types.
Использование
add_filter( 'post_mime_types', 'wp_kama_post_mime_types_filter' ); /** * Function for `post_mime_types` filter-hook. * * @param array $post_mime_types Default list of post mime types. * * @return array */ function wp_kama_post_mime_types_filter( $post_mime_types ){ // filter... return $post_mime_types; }
- $post_mime_types(массив)
- Default list of post mime types.
Список изменений
С версии 2.5.0 | Введена. |
Где вызывается хук
post_mime_types
wp-includes/post.php 3348
return apply_filters( 'post_mime_types', $post_mime_types );