Saltar navegación

[Resuelto] Remove ability to Add New Agency (relationship) but keep Connect Existing Agency

This support ticket is created hace 4 años, 11 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Luo Yang hace 4 años, 11 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#1499737
Screen Shot 2020-02-08 at 1.58.30 PM.png

Hi Toolset,

In my business I only want either admins or high-level users to be able to add a new agency. My data-entry users, I only want them to be able to connect existing agencies and use a toolset front end form to add a new agency where the user submissions are set to "pending" for review before being published.

How would I be able to either remove the "Add New Agency" button or have that button redirect to the front end "Add New Agency Form" where they would be able to enter the information and it will be set to pending.

This is very important as my data entry sometimes create duplicate agencies or don't use the correct information when adding a new agency.

#1501109

Hello,

There isn't such kind of built-in feature within Toolset plugins, you might consider custom JS codes, for example, enqueue a cusotm JS file in WordPress admin side:
https://developer.wordpress.org/reference/hooks/admin_enqueue_scripts/

In that JS file, setup Javascript codes to redirect user to a page when click the "Add New Agency" button:
enlace oculto
enlace oculto