Skip Navigation

[Resolved] I have a issue when i add a custom code.

This support ticket is created 4 years, 8 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.

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 16 replies, has 2 voices.

Last updated by DavidZ1525 4 years, 8 months ago.

Assisted by: Shane.

Author
Posts
#1323183

This code wotk fine for me..

/**
* Remove Toolset buttons on front-end editors
*
* The filter works globally so you will need
* to add a test, e.g. for page ID, to limit scope
*/
function tssupp_remove_toolset_buttons(){

$variable = $_GET['view'];

if(isset($variable) and $variable == "settings"){
// remove the Fields and Views button
add_filter( 'toolset_editor_add_form_buttons', '__return_false' );
}

}
add_action( 'init', 'tssupp_remove_toolset_buttons' );

#1323185

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.