Thank you for your inquiry.
You will be able to allow specific user to any shortcode if you use a “cdbt_after_shortcode_permit” filter. The describe of that filter is here (for Japanese only, sorry).
For example, if you want to allow access to any shortcode to the only logged in user (ex. user ID is “2”), it is as following:
shortcode on the post:
[cdbt-view table="prefix_table"]
added filter:
function my_after_shortcode_permit( $result_permit, $shortcode_name, $table ){
if ( 'cdbt-view' === $shortcode_name && 'prefix_table' === $table ) {
if ( is_user_logged_in() ) {
$current_user = wp_get_current_user();
if ( $current_user->ID == 2 ) {
$result_permit = true;
} else {
$result_permit = false;
}
}
}
return $result_permit;
}
add_filter( 'cdbt_after_shortcode_permit', 'my_after_shortcode_permit', 10, 3 );
Thank you,