# Hide import on the front-end

**URL:** <https://community.hivepress.io/t/hide-import-on-the-front-end/2586>\
**Category:** Import\
**Tags:** import\
**Created:** [October 29, 2022, 10:58am UTC](https://community.hivepress.io/t/hide-import-on-the-front-end/2586 "2022-10-29T10:58:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![garderobi.ge](https://community.hivepress.io/user_avatar/community.hivepress.io/garderobi.ge/32/1972_2.png) [@garderobi.ge](https://community.hivepress.io/u/garderobi.ge)\
**Post date:** [October 29, 2022, 10:58am UTC](https://community.hivepress.io/t/hide-import-on-the-front-end/2586/1 "2022-10-29T10:58:10Z")

</div>

Is there an option to import CSV file from Wordpress admin panel only and not to have this feature exposed to front end of the website? (ex. I would like to have my team helping other vendors uploading listings from the backend)

---

<div class="post-metadata">

**Author:** ![ihor](https://community.hivepress.io/user_avatar/community.hivepress.io/ihor/32/5_2.png) [@ihor](https://community.hivepress.io/u/ihor)\
**Post date:** [October 30, 2022, 9:20am UTC](https://community.hivepress.io/t/hide-import-on-the-front-end/2586/3 "2022-10-30T09:20:25Z")

</div>

Please disallow importing listings in HivePress/Settings/Listings/Submission, this will hide the import button for regular users but it should be still visible to admins.

---

<div class="post-metadata">

**Author:** ![garderobi.ge](https://community.hivepress.io/user_avatar/community.hivepress.io/garderobi.ge/32/1972_2.png) [@garderobi.ge](https://community.hivepress.io/u/garderobi.ge)\
**Post date:** [October 31, 2022, 11:07am UTC](https://community.hivepress.io/t/hide-import-on-the-front-end/2586/4 "2022-10-31T11:07:24Z")

</div>

Thanks - and for admins , can I do this from site front end of also from wordpress admin panel, if so - how?

I, as ADMIN would like to import listings for vendor X - so listings are assigned to that vendor X and not o admin. Is this possible ?

---

<div class="post-metadata">

**Author:** ![yevhen](https://community.hivepress.io/user_avatar/community.hivepress.io/yevhen/32/23_2.png) [@yevhen](https://community.hivepress.io/u/yevhen)\
**Post date:** [November 1, 2022, 6:46pm UTC](https://community.hivepress.io/t/hide-import-on-the-front-end/2586/6 "2022-11-01T18:46:50Z")

</div>

1. Please try this PHP snippet to remove the import listing button for users except for users with administrator roles. Sorry for the confusion, but this button is only on the front end, there is no import listing button on the admin panel

```auto
add_filter( 
	'hivepress/v1/templates/listings_edit_page', 
	function($template){
		if(!hivepress()->import->is_allowed()){
			hivepress()->template->fetch_block($template, 'listing_import_link');
		}
		
		return $template;
	},
	1000
);

```

1. Yes, it is possible to set vendors. Please try to add the column with the username or email of the user of the vendor to your CSV file. Then it is possible to set this column in the field User on the import process

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [December 1, 2022, 6:47pm UTC](https://community.hivepress.io/t/hide-import-on-the-front-end/2586/7 "2022-12-01T18:47:16Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
