ims_album_taxonomy

Description

The “ims_album_taxonomy” filter is used to modify/extend the custom album taxonomy registration array. View register_taxonomy() for more information on the array values.

A plugin (or theme) can modify the array with the code:

<?php add_filter( 'ims_album_taxonomy', 'filter_function_name' ); ?>

The hook is located in the image-store/_inc/core.php file.

Example

// Apply filter
function modify_ims_album_taxonomy( $taxonomy_array ) {
$taxonomy_array['show_tagcloud'] = true; // show taxonomy in tag cloud
return $taxonomy_array; 
}
add_filter('ims_album_taxonomy', 'modify_ims_album_taxonomy');

Note: $taxonomy_array is an multidimensional array that must match taxonomy registration values.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *