well first of all, is_plugin_active takes the name of the plugin sub-directory/file, so passing it a classname won’t work. I’m not sure why you’re passing anything widget related if you’re checking for plugins your widget depends on.
other options are php’s class_exists and function_exists to check if plugin functions your widget uses exist. check in the widgets init hook and don’t register your widget if a class or function it depends on doesn’t exist.
Related Posts:
- Between functions.php (theme), widgets, and plugins, which is loaded first?
- Plugin upgrading: Widget settings
- Simple rich text editor in Text widget?
- Need to create a Theme demo site that features multiple themes
- Adding a widget programmatically
- Override dynamic_sidebar() in plugin?
- Is dynamic forms/entries possible in Widget?
- How do I add a widget programmatically to a newly created site (WPMU) within a plugin?
- How to place random widgets in the WordPress sidebar?
- Override Widget class in plugins with custom plugin
- Pages with 2 Columns
- Can I ignore caching of a plugin in W3 Total Cache? [closed]
- Why is the unrendered widget number `__i__` showing up in the JavaScript but not in the HTML?
- Custom Widget Creating PHP Exception When Placed In Its Own PHP File
- register child class in another plugin
- Themes VS Plugins [duplicate]
- Changing widget options via the functions.php when there are no hooks
- Conditional Display of Links in Widgets
- How to Get Admin Settings for a widget when using the_widget() with custom widget
- WordPress multiple widget in single plugin
- Created Widget Not Showing up on Admin Panel
- Setting up widgets in wordpress with a unique ID for the after_title argument
- Flickr plugin that will display photos from multiple group pools? [closed]
- Admin Dashboard with Custom Tab for Client
- WordPress author details plugin/widget
- WAMP to XAMPP WordPress transfer
- The plugin generated 3 characters of unexpected output during activation
- Get post values of form created by widget in sidebar
- Multi language site [closed]
- How to style the RSS wordpress?
- How can I disable widget from being visible on some pages?
- How to display more than one instance for a widget?
- Custom random quote widget breaks when used in multiple sidebars
- Hooking in to replace the Sidebar/Widget areas
- How to add media field to WP_Widget form function?
- changes to widget settings not showing up in individual pages pages until they’re updated [closed]
- How to hide CSS by default and show on button press
- Widgets Scripts don’t load – but load when I reload the page
- Setup page on first login on multisite
- How can I inject options into an select tag inside the widget form?
- Add content to footer – above wp_footer
- How to add wp visual editor in a custom widget?
- WordPress Widget – Saving multidimensional arrays into $instance
- Custom plugin appears outside of the sidebar container
- Conditional tag in Widget Logic for checking if top level page or if subpage
- Char limit on custom blog-post form? [closed]
- How do I use wp_editor() in widget form?
- How to reorder and display a feed to be chronological?
- Hide certain widgets from specific user roles in admin
- How to add Wrapper Div/container element around WordPress Widget Content
- How do I find out what is in control over a certain part of a website?
- Problem since update 3.5 [duplicate]
- Best practice for including plugin output in a template without using shortcode?
- How can I delete a wordpress widget instance?
- Add Shortcode tag in Widget/Sidebar
- How to create wordpress widget that is fixed position on the home page
- Saving widget options from class method
- How to handle forms from sidebar widgets – Processing $_POST variables using get_field_name()
- Short messages widget [closed]
- Widget’s container?
- WordPress Widget Not Saving Instance
- My widget won’t update its values when save is clicked
- How to display a widget on a page with no theme?
- Widget where it can make changes to the container
- Widget content turns up before title
- Extend a plugin to include a widget option
- Is there a Image Gallery which will load all my posted Images like twitter’s image grid?
- Modify pages widget and make a plugin?
- wp_footer hook running twice
- Why aren’t my Follow Me links working?
- Is there any plugin to show number of clicks on the link?
- Table of contents (TOC) plugin is not showing header tag
- co-authors plugin – inline listing
- How can I display selected content from a seperate database in an Activity style widget?
- RSS Feed on WordPress showing code (hypertext) in articles titles
- Change language in SiteOrigin Widgets
- Some Widgets in the Right Side Bar and the whole Footer section is not working in a WordPress Site
- Using foreach loop for `$instance` of form and update array widget iteration
- Shortcode generated widget to appear on same line as heading text and button
- How do I keep children of certain parent menus expanded by default on a sidebar?
- Registered sidebar area is not shown from plugin.
- Widget logic using woocommerce product category
- Using slightly modified widget
- How to display widget in front end?
- Using Widget Logic to place menu on multiple pages?
- Plugin Works, but Widget Doesn’t
- Widget Script Loads at Bottom of Page
- Use of apply_filter in plugin/widget class
- jquery conflict with widget page
- Plugin: Unable to Save the Image Alignment Option to Display in the Widget in the Sidebar
- Template from scratch: Sidebars not showing widget
- Widget redirecting to home page
- Plugin won’t activate, fatal error (widget class not found)
- How to use template field in the Event Organiser plugin widget
- How to develop an extension for a simple form post and post back? [closed]
- How to add homepage Widget?
- What can I do to customize a widget provided with this plugin? from where have I to start?
- Content expands beyond its column container [closed]
- Issue with customizer and widget page
- Footer option is missing in Customiser