The author key/value query won’t work.
Try modifying the query by moving the query out of the meta query like so:
array(
'author' => $author,
'meta_query' => array(
'relation' => 'OR',
array(
'key' => 'leads_status',
'value' => '-1',
),
array(
'key' => 'leads_status',
'compare' => 'NOT EXISTS',
)
)
)
Related Posts:
- Where is the best place to use add_filter
- Edit plugin without hooks in functions.php
- Using add_filter inside another class
- How to list the Hooks and order of execution in current loading page? [duplicate]
- Pass A Value From Outside To A Plugin Variable
- Failed to invoke other hook from the init hook
- How can I filter blog name?
- Custom preview_post_link not working for draft post
- Add Fields with Sub-Fields to WP Job Manager
- Determine plugin name from within plugin_action_links filter
- merging an array to an existing array using add_filter
- Creating a plugin to sanitize comment and the url field before display only
- How to find the origin of a file upload from within wp_handle_upload?
- White page by using filter template_include
- How to check current user before all actions and filters?
- Create a navbar filter that filters by a custom field
- Passing an array from shortcode-function to filter-function
- Get Time Taken By Each Action Hook in WordPress
- qTranslate remove default directory from link
- How to change the name of the “edit my profile” link in the WordPress admin backend
- Proper way to replace the_content only for pages created by custom plugin
- add_filter doesn’t work
- Redirect to another page using contact form 7? [closed]
- Check if variable is set in filter
- Check filter defined or not?
- Add a function call after content automatically?
- what is the point of telling add_filter how many parameters you want passed to the function?
- How to add filter for wordpress plugin?
- How to use add_action for multiple instances of the same class
- How to append new form elements in “Add New” form of Users in WordPress admin panel?
- Want to create custom design of progress indicator in wpforms
- Add hook after content without formatting
- Using OR Condition with facetwp facets
- 500 Internal server error wp_handle_upload_prefilter
- Nested Actions and Filters
- Remove action added in plugin class from theme
- Using multi-dimensional array with filter
- Can I add content before post content without using the_content filter
- WordPress Add advertising ads befor and after content with periority [closed]
- trying to create simple plugin to filter categories from all authors
- shortcode which is introduced into entry the blog, and appears in side bar
- Unable to pass arguments from plugin form to filter hook using ajax, the data is transferring via ajax but unable to pass as arguments in filter hooks
- How can we extent core/group or cover block?
- Custom pages with plugin
- Do plugin files have to follow a specific convention to be “picked up” by WordPress?
- Problems with autoloading classes via sp_autoload_register / maybe interfering WP-specific autoloader
- Advice on naming files for a plugin
- Echo simple string in Plugin
- how does wp.media javascript library work?
- How can I show drafts in wp_dropdown_pages list?
- How do I add a widget programmatically to a newly created site (WPMU) within a plugin?
- Can Not Redirect from Plugin-Registered Admin Page
- Rename existing old uploaded images containing accented French characters (not during upload)
- How to Reload the Dashboard After Clicking Update in Quick-Edit?
- wp_verify_nonce() why return false?
- WordPress plugin for mail subscriptions [closed]
- Escape when echoed
- How to remove the woocommerce_checkout_process action hook in woocommerce if particular project in cart [closed]
- WordPress Automatic Plugin Update Renames Plugin Directory
- HTML in WooCommerce settings
- When to call add_filter
- Redirecting to home page after login as custom role WordPress
- Where (or when) should I register a new taxonomy?
- How to stop activating a plugin and show admin notice when dependent plugins minimum version is not met
- Fixing WordPress’s Bug (failed to send buffer of zlib output compression) results in “White Screen of Death”
- How can I make my metabox appear?
- Consolidate plugin functionality into a theme
- Is it necessary to auto delete my WP plugin database tables when users deactivate/delete my plugin?
- Namespaced shortcode?
- How to pass variables to a function argument using add_action [duplicate]
- How to insert and call new data in wordpress website database through a plugin
- What exactly happens to function argument availability when using a filter?
- Dokan Marketplace store link in single product page
- Development of plugins to add components like JqueryUI
- why the wp_register_script doesn’t work for register_activation_hook
- Set Button in PluginDocumentSettingPanel Content (WordPress Gutenberg)
- GitHub plugins safe to use in my website?
- Personality quiz in wordpress using a plugin
- How can we get this dynamically as this folder may not be by the same name always → wp-admin
- Why is my shortcode not working?
- Link custom post type to page
- implement checkbox or toggle switch in plugin code
- wp_remote_post To external API multiple values with the same key
- wordpress form not saving or updating
- How to put a maximum real-time users limit
- Custom admin plugin read CSV
- What action or filter can I use to change all the html returned from server for a page?
- How can I call functions from a custom plugin?
- How to get short description under heading – Visual Composer [closed]
- Why the output of an image gallery plugin is not displayed into a page of my custom theme?
- how to create table during plugin installation in side a class
- WP_Filesystem usage within a block of code
- Apache rewrite rules and wordpress problem
- Many Field in Front End User Registration form insert as post
- How to show an image popup when one clicks on an image thumbnail?
- wordpress last all added get meta value by post id
- Plugin to display text before a post
- Get all the related data from WordPress DB
- wp doesn’t recognize my plugin if I don’t login as WP user (or as WP Admin)
- Possible to add “Template” selector to pages? Is Any Plugins are There..?