Hiding Toolset WYSIWYG field editor buttons from my editors in wp-admin
Started by: l.f.A
in: Toolset Professional Support
Quick solution available
Problem: I would like to hide the Toolset toolbar buttons above WYSIWYG editor panels in wp-admin for certain User roles.
Solution: You can use the following code snippet to manage the visibility of these buttons in wp-admin:
function tssupp_remove_admin_toolset_buttons(){
$user = wp_get_current_user();
if ( is_admin() && !in_array( 'administrator', (array) $user->roles ) ) {
add_filter( 'toolset_editor_add_form_buttons', '__return_false' );
}
}
add_action( 'admin_init','tssupp_remove_admin_toolset_buttons', 9 );
Only administrators will see these buttons, but you can adjust the code to support other roles as well.
2
4
4 years, 6 months ago
Christian Cox
Problem when hiding elements to create the responsive version of a website
Started by: avansisI-2
in: Toolset Professional Support
2
2
4 years, 6 months ago
Shane
Best way to exclude single items from Search inputs
Started by: smileBeda
in: Toolset Professional Support
2
4
4 years, 6 months ago
smileBeda
console error Failed to load resource: the server responded with a status of 404
Started by: frederiquev
in: Toolset Professional Support
2
2
4 years, 6 months ago
Waqar
I need help creating a customized search.
Started by: Kegan
in: Toolset Professional Support
2
16
4 years, 6 months ago
Kegan
Only 2-3 lines of description in dynamic source text
Started by: maiS
in: Toolset Professional Support
2
15
4 years, 6 months ago
maiS
Mostrar contenido dentro de una view
Started by: aitorS
in: Soporte profesional de Toolset
2
8
4 years, 6 months ago
Nigel
query in model block
Started by: federicoA
in: Toolset Professional Support
2
4
4 years, 6 months ago
federicoA
Main Category are showing all parent items and not the ones added to the Main
Started by: alexD-18
in: Toolset Professional Support
Quick solution available
Problem:
The issue here is that the user wanted to exclude the posts that are on the child term of the parent taxonomy being viewed.
Solution:
This can be done with the code below.
add_filter( 'parse_tax_query', 'exclude_child_term_posts' );
function exclude_child_term_posts( $query ) {
if (!is_admin() && $query->is_main_query() && $query->is_tax( 'categories' )) {
$query->tax_query->queries[0]['include_children'] = 0;
}
}
This code can be added to Toolset -> Settings -> Custom Code and esnure that it is activated. Replace 'categories' with the slug of your taxonomy.
2
11
4 years, 6 months ago
alexD-18
Social Links Conditional in loop on Profile Page
Started by: J S
in: Toolset Professional Support
2
6
4 years, 6 months ago
Waqar
invoke a view in block model
Started by: federicoA
in: Toolset Professional Support
2
7
4 years, 6 months ago
Waqar
Would like to report few bug/usability issues
Started by: smileBeda
in: Toolset Professional Support
2
4
4 years, 6 months ago
Shane
WPV-Condition for Checking if any terms are in a custom taxonomy
Started by: albertB-4
in: Toolset Professional Support
Quick solution available
Problem: I would like to display some text if a post has any taxonomy terms assigned.
Solution: Use a Toolset Conditional block to test whether or not the custom taxonomy is an empty value. Place the Fields and Text block inside the Conditional block.
Relevant Documentation:
https://toolset.com/course-lesson/using-toolset-conditional-block/
2
3
4 years, 6 months ago
albertB-4
Protect a page with a toolset (product) form
Started by: timv-3
in: Toolset Professional Support
2
10
4 years, 6 months ago
Jamal
Custom Search in Elementor PRO
Started by: katjaS-3
in: Toolset Professional Support
Quick solution available
2
16
4 years, 6 months ago
katjaS-3