ims_gallery_post_type

Description

The “ims_gallery_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_gallery_post_type', 'filter_function_name' ); ?>

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

Example

// Apply filter
function modify_ims_gallery_post_type( $gallery_type ) {
	$gallery_type['menu_position'] = 10; // change menu position
	return $gallery_type; 
}
add_filter('ims_gallery_post_type', 'modify_ims_gallery_post_type');

Note:  $gallery_type is an multidimensional array that must match post type registration values.


Leave a Reply

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