I solved it. This line:
"if (!isset($pd_plugin_instance)) $pd_plugin_instance = new Products();"
Was causing all the error. I removed the Widget section from the plugin but forgot to remove it. After removing it, the error was gone.
Related Posts:
- How to change a user’s password programatically
- Who are the most trusted plugin developers? [closed]
- Get plugin_dir_url() from one level deep within plugin
- How to delete custom taxonomy terms in plugin’s uninstall.php?
- Redirect to settings page after install
- Notify Admins about Plugin Merge
- What is the correct way for a theme to support plugin UIs?
- How does WordPress determine the primary plugin PHP file?
- Adding Featured Image in Post List
- Why does including a file in theme’s functions.php not work?
- translation does not work with text_domain
- OEmbed from Pinterest
- Should I use RIPS tool to test my themes and plugins?
- Add Top-Level Menu that opens URL
- flush_rewrite_rules() not working on plugin activation
- Determine plugin name from within plugin_action_links filter
- Plugin Functionality Only for Editor and Administrator
- Plugin to hide admin menu (vertical menu bar)
- Having separate plugins and themes folder for multi-site setup
- action-scheduler vs wp-background-processing
- Many plugins making WordPress run slow by design?
- Do you clean up your self-written plugins’ at deactivation?
- How do I turn a custom post type into a plugin?
- Global matrix for shortcodes/content for every page
- How to add class in plugin only for network site?
- How to write a plugin to add users to a mail list
- Add keywords meta to index.php page
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- Does WP identify plugin by plugin name or plugin_basename?
- AJAX search posts and pages
- Combine scripts from all extensions of the plugin when an extension is activated
- Modifying Author Link to add Author Meta in URL
- Force file download on plugin activation
- Checkbox conflict in my custom plugin admin page
- How to create a custom post type that contains another custom post type?
- How to change the name of the “edit my profile” link in the WordPress admin backend
- Can a Plugin Override New User Default Role Type
- Add action to fire when a published post is updated
- How to let user store a file in plugin directory but not have it get deleted on update?
- Great blogs site resources/tutorial for WordPress Developers? [closed]
- How to make multiple admin pages for one plugin?
- Create custom pages with a plugin
- Is it possible for a plugin to force reading and writing of uploaded images to a database instead of to a filesystem?
- Amazon.com intergration with WordPress?
- Change letters for day name
- (WordPress 5.8.3) Function.php or a plugin for better performance? [duplicate]
- Set Multiple Meta Values as an Array Using dispatch( ‘core/editor’ ).editPost() Call in Gutenberg/JS
- Elementor Custom Control: How to get input value?
- Minimize and Uglify WordPress Plugin Files
- Comment “like” problem – “users who like this” avatar linking to current user profile instead of “liker’s” profile
- I want to generate the pdf and save it in library?
- How do I make sure that my plugin only runs on article detail pages?
- Best way to retrieve data in custom api extended from wp-api
- WordPress API functions not working at AJAX functions.php call
- How do I show content from a plugin using the template the site is currently working with?
- How to check homepage contain blog post?
- More gentle way to hook WordPress custom url
- auto activate plugin when theme is active
- Xamp installed local wordpress not allowing to publish or install plugin
- Activate Plugin Automatically After Set Time
- Using sessions or an alternative in a plugin
- Correct way to expand custom WordPress plugin functions
- Hide content for specific users with id
- adding dynamic/multiple slug values in ‘option_none_value’
- Allow members to create groups on my site
- WordPress UPDATE queries on MySQL database stuck
- is it possible to fetch data from a remote api while admin is writing a new post?
- Checkbox field that add a subscription product and change prices of other products in checkout and cart page
- Get post content inside plugin class method
- Custom author page for custom role
- Dynamical slug on custom post type
- Ubermenu 3 Nav Bar Customization
- Storing Array of values into wordpress options
- Using WordPress to create a simple web app (SaaS) [closed]
- Where do the section input fields values are stored in database
- WordPress Add advertising ads befor and after content with periority [closed]
- View more posts of a sub-category
- Update Plugin Without Overwriting Custom Settings
- How to customize ‘recurrance’ of’ wp_schedule_event’?
- woocommerce blank page after clicking add to cart [closed]
- Create Array from data in the OPTIONS table
- appointment plugin doesn’t display all appointments
- Display_rows() and column_cb() strange behaviour
- WordPress plugin options need to delete after deactivate & uninstall
- How can I pass value to function in add_menu_page?
- How to show post attachment image
- Doing action based on input from options menu
- Making a Custom Post Type Publish Loop
- How to generate a responsive output from plugin?
- The plugin generated xxx characters of unexpected output during activation
- How to hide a piece of code from a wordpress web page?
- How to dispaly post informations (such as titles) in an admin plugin menu page?
- Someone Comment 1000 times in a Day in My WordPress Site, What Can i Do
- get_option returning a different value from what’s saved
- Create Custom Coupon Type
- How to provide page_template path in custom plugin using WordPress
- WordPress custom block: Link saved in database not retrieved when editing post
- Accessing Correct Database to Create REST API Endpoint
- Detect if user is on the specific page in WordPress
- A multi-section WordPress store [closed]