The “ims_{$tab_id}_tab_content” action runs for each import tab in the import metabox, in the gallery edit screen.

A plugin (or theme) can add an action with the code:

<?php add_action( 'ims_{$tab_id}_tab_content', 'filter_function_name'); ?>

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


// apply action
function action_ims_upload_zip_tab_content( $tab_id, $tab_name ) {
	//run action here or echo html content
add_action('ims_upload_zip_tab_content', 'action_ims_upload_zip_tab_content');

Note:  $tab_id is and string or integer, $tab_name is a string.

Leave a Reply

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