# wp-data-access/5.5.41/WPDataAccess/Data_Apps/WPDA_Query_Builder.php

WP Data Access – App Builder for Tables, Forms, Charts, Maps &amp; Dashboards, version 5.5.41. 54 lines.

- Page: https://pluginprobe.com/plugins/wp-data-access/5.5.41/code/WPDataAccess/Data_Apps/WPDA_Query_Builder.php
- Raw: https://pluginprobe.com/plugins/wp-data-access/5.5.41/raw/WPDataAccess/Data_Apps/WPDA_Query_Builder.php
- Modified: 2025-05-23T00:02:30+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-data-access/5.5.41/code/WPDataAccess/Data_Apps/WPDA_Query_Builder.php#L10-L20`.

```php
<?php

namespace WPDataAccess\Data_Apps;

use WPDataAccess\WPDA;
class WPDA_Query_Builder extends WPDA_Container {
    public function show() {
        if ( !WPDA::current_user_is_admin() ) {
            if ( !is_admin() && !$this->send_feedback() ) {
                return;
            }
            $this->show_feedback( __( 'Not authorized', 'wp-data-access' ) );
            return;
        }
        if ( is_admin() ) {
            $this->show_on_backend();
        } else {
            $this->show_on_frontend();
        }
        $this->add_client();
    }

    private function show_on_backend() {
        ?>

            <div class="wrap wpda-query-builder-backend">

                <h1 class="wp-heading-inline" style="margin-bottom: 18px">
                    <?php 
        ?>
                    Query Builder
                </h1>

                <?php 
        $this->show_on_frontend();
        ?>

            </div>

            <?php 
    }

    private function show_on_frontend() {
        ?>

            <div class="wpda-pp-container">
                <div class="pp-container-query-builder"></div>
            </div>

            <?php 
    }

}

```
