soflyy/wp-all-import-action-reference

wp_all_import_get_image_from_gallery

trey8611 opened this issue · 0 comments

add_filter('wp_all_import_get_image_from_gallery', 'wpai_wp_all_import_get_image_from_gallery', 10, 3);

function wpai_wp_all_import_get_image_from_gallery( $attach, $image_name, $targetDir ){
	/** 
	* do something with found attachment
	*/
	return $attach; // if attach === false the image will be downloaded 
}