Description
The “ims_image_post_type” filter is used to modify/extend the custom album taxonomy registration array. View register_post_type() for more information on the array values.
A plugin (or theme) can modify the array with the code:
<?php add_filter( 'ims_image_post_type', 'filter_function_name' ); ?>
The hook is located in the image-store/_inc/core.php file.
Example
// Apply filter function modify_ims_image_post_type( $image_type ) { $image_type['menu_position'] = 10; // change menu position return $image_type; } add_filter('ims_image_post_type', 'modify_ims_image_post_type');
Note: $image_type is an multidimensional array that must match post type registration values.
Leave a Reply