send_feedback() ) { return; } $this->show_feedback( __( 'Not authorized', 'wp-data-access' ) ); return; } if ( isset( $args['dbs'], $args['tbl'] ) ) { $this->dbs = WPDA_API_Core::sanitize_db_identifier( $args['dbs'] ); $this->tbl = WPDA_API_Core::sanitize_db_identifier( $args['tbl'] ); } else { if ( isset( $args['feedback'] ) && false === $args['feedback'] ) { return; } throw new \Exception(esc_attr__( 'ERROR: Invalid usage', 'wp-data-access' )); } $this->s = ( isset( $args['s'] ) ? sanitize_text_field( $args['s'] ) : '' ); // Not required $this->c = ( isset( $args['c'] ) ? sanitize_text_field( $args['c'] ) : '' ); // Not required } 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; } ?>