Nevermind, I found the solution. I included pluggable.php in the plugin which is a no-no to start with. And then I used wp_get_current_user()
incorrectly.
Related Posts:
- Disable email notification after change of password
- How do I call wp_get_current_user() in a plugin when plugins are loaded before pluggable.php?
- Keep one user logged for a year?
- Need to replace Currency Shortforms
- How to add custom function to pluggable.php
- Cookie value changes back to previous value after changing
- How can I store user preferences in WordPress and retreive them later?
- How to execute init or woocommerce_init only for checkout page
- Best collection of code for your 'functions.php' file [closed]
- Should all plugins be encapsulated in a Class?
- How to get the active theme’s slug?
- Preserve custom URL parameter on more pages
- if plugin is active? check if plugin is enabled or not?
- Making plugin unique to not conflict with plugins with the same name
- How to find out if option exists but is empty?
- How to store ACF custom fields data in a custom table
- Trying to disable plugins doens’t work
- Thumb rating for wordpress – top user
- shortcode doesn’t work
- Have Plugin Handle Specific URLs
- How to Replace Words with Hypertext Link But Ignore Previously Existed Links?
- How do you remove plugin edit option?
- Where should I save an API key of my user when installing my plugin?
- Accessing post’s meta data based on user’s click of a post
- Apple push notification doesn’t work
- How to add equivalent of php include to one page (as plugin?)
- Image upload and download from front-end
- How to call WordPress function other files
- Removing an action from wp_footer called in a class that’s inside a bigger class
- Conditional attributes and logic per product category
- Using Wishlist Member and I need to access a user’s status
- Why namespaces are rarely used in WordPress plugins?
- How do I show a different homepage to logged in and non-logged in users?
- PHP Error When a plugin is active
- Inserting custom PHP script on homepage
- Include a php file from another plugin
- Add bcc to contact from on wordpress
- wp-mail attachment is not sent for no reason?
- Custom shortcode for displaying user based on a role parameter
- wp_enqueue_scripts
- WordPress Console Application (ability to excecute a custom function via crontab only)
- How can I fetch data from another website to my wordpress website with mysql database
- Save user total active time after login in wordpress [closed]
- Switch from wp-cron to a server cron job
- Calling a save function from a “submit” button
- Wp Debug Enabled True Notices and Warning
- How to hook into action/filter call
- WP Subtitle Plugin Problem
- WooComerce Deposit: set specific shipping method and quantity based deposit amount
- Unexpected add action function in WP plugin
- How to get brand children with woocommerce brands
- get_post_meta shortcode returns empty field
- Is there any way to sync Facebook Comments and with comments on WordPress website?
- How to get a specific string from a url
- WordPress rewrite rule depend on meta values not ids
- location lock wordpress website
- Problem with wordpress has_action() function
- Offering a freemium plugin (a free version + paid version)
- Why is my form going to frontend on html form submission present on the php files inside my custom plugin?
- How much PHP and MySQL or MariaDB knowledge should I know to start writing WordPress themes and plug-ins and whatever else a beginner can edit?
- Reverse count page view and show on other page
- Limiting buddy press features based on membership level (PMPro)
- Caching of combined CSS and JS fails because of losing MIME types through combining by PHP
- Change pricing in Woocommerce based on Category and Product [closed]
- Register setting on plugin activation
- Creating wordpress admin page panel [Theme Option]
- WordPress not displaying information on post sent from custom admin form
- How to replace native comment_count with Comments Evolved aggregate count
- Woocommerce: deleted single-product.php, everything still works. How is it possible?
- Autoloading a PHP class – working outside, but not inside WordPress plugin
- Calling an custom field from theme option at the frontend
- pluggable function in theme, to be overridden by plugin
- Variable passed to each() is not an array
- Working on fixing wp-front-end-editor, encountering undefined index
- Some of my php is rendered only when logged as admin
- Shrinktheweb plugin problem
- Photos do not show on SEO platform built into a wordpress plugin
- Pulling sub-site content into specific pages
- Issue with custom plugin
- Showing author box on post detail page
- Getting Post Permalink Outside of Loop Not Working
- My wordpress website admin panel loads very slow, what can i do about that? [closed]
- PHP $_session is not work in wordpress
- how to restore wordpress backup(.rar) manually?
- White Screen When Includding A Folder With PHP Files
- What can I do to customize a widget provided with this plugin? from where have I to start?
- wordpress jquery is not defined because the head tag is empty
- Two sites one PC
- PHP if url extension action=discussion condition use [closed]
- Shortcode inside a redirect [closed]
- Attachement title in wpallimport
- Block registration with viewScript
- How to add custom html to the Media > Attachment Details modal?
- Option value not getting updated until page refresh in WordPress
- Fatal error: Uncaught Error: Call to a member function fetch_array() on bool
- I want create woocommerec match products columns
- WordPress Custom Page Blog Template Pagination Problem (Pagination Not Displaying)
- How to override plugin function in code snippets WordPress
- Use inline callable for hooks and filters
- Error in using ‘admin_enqueue_scripts’ action through a class