Navigation überspringen

[Gelöst] I need to remove the fields and view button in text editors

This support ticket is created vor 5 Jahren, 8 Monaten. 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 – 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)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Shane vor 5 Jahren, 8 Monaten.

Assistiert von: Shane.

Author
Artikel
#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: versteckter 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: versteckter Link

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

#1316497

Checking

#1316613

Shane
Unterstützer

Sprachen: Englisch (English )

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