Your query includes a test for quy
to be non-zero, so you will never run into the situation where empty($row->quy)
will be true
. Furthermore, you should be testing if $rows
is set or is null
since you indicated that “nothing is displayed when the query is empty.”
You will need to rewrite your code to test the result of the query to test for the null
condition. If it is null
, then the user is registered. Otherwise, they are not registered.
Related Posts:
- Using query_vars filter
- Get a custom table to an array
- $paged always 0 on plugin’s custom page
- WordPress pre_get_posts with combined results of two queries (OR)
- Admin Posts List (edit.php) by post IDs
- wp_get_post_terms Order by not working
- Prevent WordPress automatically processing certain URL queries
- Why in this archive page that call query_posts() function show only the last 10 posts?
- insert query on a custom table using ajax with jQuery plugin Jeditable
- Taxonomy archive page listing terms instead of posts
- Brainstorm – Slow Query from Plugin Need to Speed It Up
- Checking for existing title in custom db query not working
- Load specific page when a custom URL is hit
- How to grab data after wp user search is complete
- WP_Query not ordering correctly
- How to get inserted row IDs for bulk/batch insert with wpdb query?
- bindParam? WordPress 4.9.5 SQL LIKE statement %s and %LIKE%
- WP Query Relations / Compare
- Array/List Edit in Backend
- Add query string variables to all hyperlinks URL matching a specified domain
- Can I log the searches that are returning 404 in the DB?
- Objective Best Practices for Plugin Development? [closed]
- How can I add an option to the Page Template list from a Plugin?
- wp_mail is undefined
- How do you use the plugin boilerplate loader class to hook actions and filters?
- Build path for a custom portfolio plugin
- How to save block attributes when the output doesn’t change
- How to: Rest endpoint returning empty object
- Ensuring a plugin is loaded/run last?
- Script to remove all inactive widgets?
- Scheduled event does not run at midnight
- Plugin options table,is the data serialized
- Converting theme widgets to plugins?
- Sample — test — data for large WordPress install
- DIR vs URI when defining a path to a file
- What is rich_editing?
- How Can I setup WP CLI on Windows development machine running AMPPS?
- WP_LOCALIZE_SCRIPT doesn’t work
- JS / JQuery form validation in backend admin menus
- Is using register_activation_hook required?
- Synchronize Custom post type tags to WordPress default posts tags
- Tabbed navigation for plugin options using same row in database for all?
- wp_enqueue_script + wp_enqueue_style Since When
- How to send email in wordpress with more than one attachments
- Modify users.php page to create page/post on button clicked
- Is there an action like ‘after_register_custom_post_type’?
- get_current_screen() return null
- Frontend language per user
- How to get results of subcategories also?(WP Rest Api v2)
- How to run a function on plugin’s options page?
- What stylesheets are available in core?
- dbDelta using Foreign key not working on update [duplicate]
- Plugin widget zindex changes depending on theme [closed]
- Search: how to extend the existing search to include a custom table
- Plugin development: delete options when updating to a new version
- Is there documentation reference for forms in menu and setting pages?
- Custom code for WordPress dynamic menu
- Plugin templates vs Parent Theme
- wpdb->prepare and mysql UPDATE – how is it done?
- How to get all queries’s results after they have executed?
- Custom entity search and display
- ECHO Executing 4 Times In Head
- Difficult to create unique titles and meta description?
- post_title is empty on global $post object
- wp_schedule_event custom event time
- Ajax: Populate with content from a post’s ID not working – duplicating current page html instead
- WordPress shortcode using WPB_GET_IP
- How to properly package a block plugin
- How to create post favorite function without plugins
- Mock a dependency of a WP_REST_Controller class
- How add default term meta to prevent an error?
- How to get current logged-in user details in multisite?
- Data inserted by wpdb insert is different than data pressnt in database.
- Cleaning a filename after image sideloading a url that contains `%20`
- wp login redirect loop reauth=1
- Paragraph Tags removed when contents are only a shortcode
- how to show youtube comment profile pic in wordpress
- When I activate my custom plugin the menus and some styling of my site is messed up
- I need to combine Pages Listing and Main Menu from frontend in WordPress
- WordPress Does not grab the string sends useing AJAX response, wp_ajax hook
- Query String Filtering API
- update_option() passing empty array() but still updating
- Bad request 400 using class based files
- Gutenberg block breaks when showing new data
- Allow contributor user role to perform copy operation PHP
- How to use own css of functionality plugin?
- Get Custom taxonomy parent with wordpress REST API
- Insert, update or remove data from database (usermeta)
- AJAX call of function containing javascript which is not loaded (Plugin development)
- Hide post by ‘post_category’
- How can I query 3 posts from diferente categories (one of each category)
- Load JS/CSS of shortcode in post
- update_option() updating the option with an empty value?
- Adding querystring variable breaks admin URLs
- How to check during “pre_get_posts” if WP performing default query for specific custom template?
- wp_mail_from not changing from address
- pre_set_site_transient_update_plugins not updating
- Set link dialog to open in blank by default
- plugabble wp_authenticate function not works from wp-login.php
- How to get recent one post from each category on home page?