Public Ticket #5000199

Reject and delete vendors applications

Open
Comments
2,765
KingsPlugins replied 3 weeks ago on October 28, 2026 at 4:34pm

Hi Marwan,

Yes, you can do that by adding this snippet to your theme's functions.php file or through a code snippets plugin:

add_filter( 'marketking_enable_approve_as_customer', '__return_true' );

 

This adds an Approve as regular customer option to the Registration Approval dropdown.

The vendor application won't be approved, and the WordPress account will remain active as a regular customer without vendor access.

Approve a vendor applicant as a regular customer

 

Let me know if that works for you,

Kind Regards,
Stefan

2,765
KingsPlugins replied 3 weeks ago on October 29, 2026 at 3:40pm

Hi Marwan,

Thanks for getting back to me,

 

There are a few reasons it may not have worked. 

First of all, I've prepared an improved code snippet that also adds a Rejection Reason feature. Please replace the previous snippet with this version:

Code snippet 

In the code snippets plugin, set it to Run Everywhere. Do not set it to "frontend only" - that could explain why it did not work previously if set to run only on frontend.

 

When reviewing an application, you should be able to see a Reject vendor application (keep as customer). A required rejection-reason field will appear. Enter the message and click the green Reject vendor application button.

Vendor application rejection reason field and rejection button

The applicant will then receive an email with the reason:

Vendor application rejection email containing the reason

Their WordPress account will remain active as a regular Customer without vendor access.

 

Please let me know if this works for you. If not, it would be great if we could troubleshoot it directly - for that, would you be able to share a backend login to the site, or a staging clone site?

Kind Regards,
Stefan

2,765
KingsPlugins replied 3 weeks ago on October 29, 2026 at 7:15pm

Hi Marwan,

Thanks for the screenshot.

This is Wordfence blocking the request, not an error in the snippet itself.

It's likely triggered because the new rejection reason feature uses "DOMContentLoaded" in the code, which security plugins sometimes flag as suspicious.

 

You can safely allowlist it, there is no risk to the code. Just check "I am certain this is a false positive", click "Allowlist This Action", and then go back to save and activate the snippet again.

Kind Regards,
Stefan

2,765
KingsPlugins replied 3 weeks ago on October 31, 2026 at 12:03pm

Hi Marwan,

Thanks for the screenshots, I think I see the issue. The screenshots seem to be from the B2BKing User Registration Data panel, but the previous snippet was built for MarketKing's separate approval panel.

 

Please deactivate the previous snippet and replace it with this B2BKing version, set to Run Everywhere:

Code snippet 

You should then see a Reject vendor application (keep as customer) dropdown option:

B2BKing vendor rejection option and required reason field

Let me know if that works,

Kind Regards,
Stefan

2,765
KingsPlugins replied 2 weeks ago on November 1, 2026 at 7:44pm

Hi Marwan,

Please go to B2BKing -> Settings -> Main Settings and check the Plugin Status setting.

The option to reject and keep the user as a regular customer only appears when B2BKing is set to B2B & B2C Hybrid Shop. If it's set to B2B Shop, B2BKing treats all users as B2B and hides the B2C customer option. In this mode, all users are B2B, so there's no option to reject and set as regular customer (All customers are B2B).

Switching to B2B & B2C Hybrid Shop and saving your settings should make it appear.

 

If it's already set to Hybrid Shop, could you please share a temporary backend login to the site or a staging site so I can check this directly?

Kind Regards,
Stefan

2,765
KingsPlugins replied 2 weeks ago on November 6, 2026 at 9:48pm

Hi Marwan,

Thanks for letting me know,

I checked this now and the B2BKing snippet appeared to be inactive - I've activated it and set it to Run Everywhere, and B2BKing remains in B2B & B2C Hybrid Shop mode.

I believe this is working now, please take a look and let me know if you see any issues,

Kind Regards,
Stefan

2,765
KingsPlugins replied 6 days ago on Wednesday at 11:28pm

Hi Marwan,

I checked your Vendor Registration page, and the form there actually uses B2BKing's registration role and fields, so new submissions go to B2BKing.

I saw your site has a pending MarketKing application from March - I think that comes from an older setup rather than your current form.

The vendor registration page could be switched to use MarketKing, but for simplicity, I'd recommend keeping it as it is if all works well as there's no fundamental difference.

Kind Regards,
Stefan

3 Tickets 3
Marwan replied 4 days ago on Friday at 8:02pm

My vendors are not able to upload their product images from their dashboard. It works from my admin account but not from any vendor dashboard accounts.

2,765
KingsPlugins replied 3 days ago on Saturday at 6:12pm

Hi Marwan,

Thanks for letting me know,

This has been addressed in MarketKing Core 2.1.85. Please update it using the ZIP attached to this reply:

1. Deactivate the current MarketKing Core plugin.
2. Go to Plugins -> Add New -> Upload Plugin.
3. Upload the attached ZIP and activate MarketKing Core again.

 

Kind Regards,
Stefan

Attached files:

Sign In