Changing the comparison operator to == instead of strict comparison === as suggested by @czerspalace, solved the problem because on execution of my update function no rows were updated, so 0(int) was being returned . False is only returned if there is an error.
Related Posts:
- How to get the path to the current theme?
- Post meta vs separate database tables
- How to add a javascript snippet to the footer that requires jQuery
- Enhance Media Manager for Gallery
- Adding Custom Text Patterns in the WP 4.5 Visual Editor
- How to create an API for my plugin?
- Plugins in symlinked directories?
- Inserting Taxonomy Terms During a Plugin Activation?
- How to use PanelColorSettings in custom Gutenberg block?
- Is there a way for a plug-in to get it’s own version number?
- How to add tab which is visible only in admin side of product in woocommerce? [closed]
- Replace audio/video enclosure with player?
- Contact Form 7: wp_mail doesn’t work after update to 4.6
- How do I print a notice only on certain admin pages?
- Hook the Keydown Event in the TinyMCE Post Editor
- Gutenberg ServerSideRender is deprecated, how to work with new wp.serverSideRender component?
- Add an image gallery to a custom post type?
- Unit testing wordpress plugins with plugin options
- Create a clickable name in WP_List_Table for Plugin Admin
- Plugin development without Theme adjustments?
- How to Make a Category Always Selected?
- WordPress Localization and Templating
- WordPress Settings API: saving multiple rows of similar data
- Modify how gallery.js builds the shortcode [gallery ...] in tinyMCE?
- How to use is_multisite() in a must-use-plugin?
- Why after a file is programmatically deleted, is there still a reference in the media library?
- Can’t we use strings defined as PHP constants if we want to translate them in a plugin?
- DataBase connection problem with PHPUnit and WordPress
- Modify a Free Plugin available on wordpress.org & include with my Premium Theme? [closed]
- Ethics question: what qualifies as a fork? [closed]
- How to i18n text coming from the db or from an external source
- Plugin settings not saving
- Registering and using actions which return results in a Plugin class
- How to replicate Media Library “Add New” on Plugin Settings Page
- WooCommerce Conditional Tag inside plugin
- Add code inside specific wordpress standard function
- Conditional hook based on the core function that is calling it
- Best way to save custom css for an block
- How to hook a custom user function to a wordpress core ajax action?
- How to change the hover content of a specific menu item on WordPress?
- PHP – Extend WordPress Woocommerce Revenue Analytics with custom field
- Amending REST API function without deactivate/activate plugin every time changes is made
- Sending post request with wp_remote_post not working correctly
- Plugin callback page
- Is nonce in PHP form and Ajax both necessary?
- How to add WordPress Admin “Insert Link” UI (searches through existing posts for URL) and functionality into a custom plugin?
- Unable to change footer using wp_footer action hook
- Input value from metabox is not found in $_POST after post save
- CMB2 Form Throws No Input File Specified in custom WordPress Plugin
- Input in plugin widget does not allow spaces
- Enqueue script globally
- White screen when activating plugin that sends form via WordPress
- dbDelta SQL Query Not Working
- Plugin README.txt isn’t updating in the Directory (stable tag is correct)
- wp_localize_script is not adding a global variable for javascript
- A question about add_action()
- How to display the categories on page using shortcode?
- Plugin index page code executes multiple times
- add_action pre_term_description vs. pre_category_description
- How to Get Rid of Unwanted Backslashes in WordPress Form Input inside admin menu option
- WordPress plugin cron working only if admin is logged in
- How to Customize Polylang Language Items
- Enqueue scripts inside a class in a plugin
- Redirect User to custom URL after registering
- Create a Plugin to Download Files from Web to Server
- WP plugin repository didn’t parse readme.txt correctly
- “Rendering of admin template [path to template] failed”
- Allow REST API Endpoint to specific user and hide from public
- Adding a dropdown on the user admin
- Check current URL is 404 in pre_option_stylesheet filter hook
- I’m including a html file in my plugin, but it can’t find its css or js files
- How to show content in the body with my plugin (only in frontend not backend)?
- Problem in plugin debuging in wordpress
- OOP development and hooks
- How to include files in the loop via ajax
- mutiple shortcode instance on the same page
- Some data has already been output, can’t send PDF file – fpdf issue in WordPress
- Can i use one wp plugin inside other?
- Plugin or Custom Page Type
- Function not working on any file other than the main plugin file
- Pluigin Migration – I need to move a single plugin to a different website
- Login using /wp-admin doesn’t redirect back to /wp-admin
- Need to change buddypress profile url by add_rewrite_rule
- wp_mail links are dead
- Generate activation url
- Adding Third Post Box Column: postbox-container-3
- Use different archive template for plugin
- Get custom wp_query search results to appear on search.php
- Is it safe to use PUT and DELETE requests
- Multi-part form and wp_redirect()
- Sharing changes to a post (preview changes) with another user
- Error using @wordpress/create-block to create multiple blocks on Windows
- Checking if the query is empty does not work
- Remove default wordpress roles
- What is the meta_query key name for the woo product average rating? [closed]
- how to catch a data from a array in WordPress
- Why my admin-ajax url returns 0 even after adding echo and die() at the end of function?
- External api call using wordpress
- Set link dialog to open in blank by default
- plugabble wp_authenticate function not works from wp-login.php