Skip Navigation

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

This support ticket is created 5 years, 3 months ago. 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
- 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)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Shane 5 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#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: hidden link

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: hidden link

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

#1316497

Checking

#1316613

Shane
Supporter

Languages: English (English )

Timezone: 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