Skip Navigation

[Resolved] Views and Access buttons appear in front-end editor when Media button enabled

This thread is resolved. Here is a description of the problem and solution.

Problem:
Hide Fields and Views and Access buttons in front-end editor.

Solution:
Add this code in your theme’s or child theme’s functions.php file:

function remove_toolset_buttons(){
   
  if(!is_admin()){
    add_filter( 'toolset_editor_add_form_buttons', '__return_false' );
    add_filter( 'toolset_editor_add_access_button', '__return_false');
  }
}
add_action( 'init', 'remove_toolset_buttons' );

In above code, replace 999 with your View ID.

This support ticket is created 7 years 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
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 4 replies, has 2 voices.

Last updated by neilR 7 years ago.

Assisted by: Noman.

Author
Posts
#584702
FrontEndButtons.jpg

Not sure there's much to add to the title...

#584728

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Neil,

Thank you for contacting Toolset support. Add this code in your theme’s or child theme’s functions.php file:

function remove_toolset_buttons(){
  
  if(!is_admin()){
    add_filter( 'toolset_editor_add_form_buttons', '__return_false' );
    add_filter( 'toolset_editor_add_access_button', '__return_false');
  }
}
add_action( 'init', 'remove_toolset_buttons' );

Thank you

#584732

Hi Noman,
Thanks for the swift reply. Please can you advise whether this is going to be fixed in next release? Previous forum replies indicated this shouldn't be happening.

#584764

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Yes looking in our system I noticed that this will be fixed in upcoming version, but please note I cannot promise when it will be available because its entirely on our development team when a particular issue will be fixed. And it can be changed based on priority. We try our best to solve any reported issue as soon as possible, so lets hope 🙂

This was fixed before but for some reason the fix didn't workout well so we have reported issue again recently. I have also add a note to our development team with your current ticket so that they know importance of the issue. I hope it helps.

Thank you

#584774

Thanks.