You can wrap some shortcodes into your custom one. Do next:
- open file functions.php of the current WordPress theme
- paste and edit there next code:1234567891011add_shortcode('my_tableon_1', function($args) {$user = wp_get_current_user();if (in_array('administrator', $user->roles)) {return do_shortcode('[tableon id=23]');} elseif (in_array('shop_manager', $user->roles)) {return do_shortcode('[tableon id=29]');} else {return do_shortcode('[tableon columns="id,post_title,__price"]');}});
- paste shortcode [my_tableon_1] to page you want
- also make your attention to $args - you can make custom shortcode attributes
On this way you can create different custom shortcodes for your site!