wp_theme_editor_filetypes

wp_theme_editor_filetypes

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('wp_theme_editor_filetypes') is found 1 times:

  • /wp-admin/includes/file.php line 296
    	 *
    	 * @param string[] $default_types An array of editable theme file extensions.
    	 * @param WP_Theme $theme         The active theme object.
    	 */
    	$file_types = apply_filters( 'wp_theme_editor_filetypes', $default_types, $theme );
    
    	// Ensure that default types are still there.
    	return array_unique( array_merge( $file_types, $default_types ) );
    }
    
    /**