Skip Navigation

[Résolu] Remove Types Fields button from ACF wysiwyg field

This support ticket is created Il y a 5 années et 1 mois. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+01:00)

This topic contains 3 réponses, has 2 voix.

Last updated by Nigel Il y a 5 années et 1 mois.

Assisted by: Nigel.

Auteur
Publications
#1206027
Screen Shot 2019-02-26 at 6.12.52 pm.png

Tell us what you are trying to do?
I am setting up a wysiwig field with Advanced Custom Fields that will only be for text input.
I am not using Types for any Custom Fields and do not want this button to be displayed

Is there any documentation that you are following?
No

Is there a similar example that we can see?

What is the link to your site?
The site is in my local dev only at this point

#1206238

Nigel
Supporter

Languages: Anglais (English ) Espagnol (Español )

Timezone: Europe/London (GMT+01:00)

Hi there

We have filters that can prevent the Toolset buttons being added to wysiwyg fields in the backend, but they would be applied universally unless you have some test to narrow down where they are applied.

Can you get a hook from ACF that is triggered when a wysiwyg field is instantiated on back-end edit screens?

We could then use that to trigger the filters to disable the buttons and have it only affect the ACF wysiwyg fields.

If you can provide the hook I'll test the solution.

#1206540

Actually in this case it is fine if it is universal as I simply wont be using Types custom fields at all.

#1206863

Nigel
Supporter

Languages: Anglais (English ) Espagnol (Español )

Timezone: Europe/London (GMT+01:00)

In that case you can just add the following as a code snippet at Toolset > Settings > Custom Code

add_filter( 'toolset_editor_add_form_buttons', '__return_false' );
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.