Skip Navigation

[Resuelto] I need to remove the fields and view button in text editors

This support ticket is created hace 5 años, 3 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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

Supporter timezone: America/Jamaica (GMT-05:00)

Etiquetado: 

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por Shane hace 5 años, 3 meses.

Asistido por: Shane.

Autor
Mensajes
#1316495

Tell us what you are trying to do?
I want the field and views button removed when using editors in other plugins.
This is the one: enlace oculto

Is there any documentation that you are following?
I checked documentation but no clue.

Is there a similar example that we can see?
IN the video: enlace oculto

What is the link to your site?
loceriacolombiana.luxflow.app

#1316497

Checking

#1316613

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi David,

Thank you for getting in touch.

You can remove them by using this hook below.


function tssupp_remove_toolset_buttons(){
   
    if ( !empty($GET['pid']) ) {
        // remove the Fields and Views button
        add_filter( 'toolset_editor_add_form_buttons', '__return_false' );
    }
}
add_action( 'init', 'tssupp_remove_toolset_buttons' );

Add it to your toolset custom code section under Toolset -> Settings -> Custom Code and activate it.

Please let me know if this helps.

Thanks,
Shane