1function redirect_direct_access( ) {
2
3 $post_id = get_the_ID();
4
5 if ( $post_id == POST_ID && !isset( $_GET[ 'voluumdata' ] ) ) {
6 wp_redirect( 'REDIRECT_URL' );
7 exit();
8 }
9}
10
11add_action( 'template_redirect', 'redirect_direct_access' );