Skip Navigation

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

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

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)

Etiquetado: 

This topic contains 16 respuestas, has 2 mensajes.

Last updated by DavidZ1525 hace 4 años, 8 meses.

Assisted by: Shane.

Autor
Mensajes
#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.