I do not recommand using is_plugin_active() because if you rename your plugin directory which is done sometimes for security needs you’re screwed.
If I were you I’d look into plugin you want to detect and select a core class or a core function of the plugin and test it with if(class_exists('name_of_the_class'))
or if(function_exists('name_of_the_function'))
.
Hope this will help, that how I proceed.
Related Posts:
- Why do I get this “plugin does not have a valid header” error?
- Edit plugin without hooks in functions.php
- WordPress Capabilities: edit_user vs edit_users
- Making plugin unique to not conflict with plugins with the same name
- How to find out if option exists but is empty?
- Is dynamic forms/entries possible in Widget?
- Is there a WordPress Plugin that allows voting “does this coupon work” on specific links like Retailmenot
- How to get posts by content?
- Trigger a custom wordpress plugin with a linux cron
- update_meta_user difference in i:1 and b:1, how to write b:1
- Add_rewrite_rule doesn’t add custom url in plugin
- Force plugin to fail activation
- How to add inline css/js inside a shortcode
- Is this plugin being loaded before file.php, subsequently not allowing me to use certain functions?
- Plugin not saving values when placed in a folder within /wp-content/plugins
- How to integrate plugin in WordPress theme
- How do I write into a file (css)
- Is license need for free wordpress plugin
- Getting a List of Categories for Use in a Plugin?
- Loco Translate: Custom Post and Custom Taxonomy Labels not translated in wp-admin menu
- Where should I save an API key of my user when installing my plugin?
- How to make a customize role and view a specific plugins base on that role?
- Allow users of my plugin to define their own shortcode rather than use mine?
- How to get all of the activate_plugin action parameters?
- Display update notification messages like ‘What’s New’
- CRUD and Frontend show from a custom table without shortcode
- Map Custom Registration Fields to WordPress User Roles
- How can I make 2 plugins that include different versions of a framework to both use the latest version?
- Add Plugin options as subpage to Theme options page
- Image upload and download from front-end
- custom payment gateway in woocommerce failed to connect to remote api server
- What can be reason for no plugin-strings available under stable section on translate.wordpress.org?
- correct way to include a library(and its dependent libraries) in wordpress development
- Issue Tracker from pre exsisting table [closed]
- WP_Terms_List_Table Quick Edit not working
- Git Hosting for WordPress SVN Plugin Repository [closed]
- Is there a directory my plugin can write files to that cannot be viewed via the browser/url?
- How to exclude certain files from the plugin editor?
- WordPress Widget – Saving multidimensional arrays into $instance
- Stop Plugin from Getting Styles from Other Plugin
- WordPress REST API Plugin Development – Add Custom Endpoint
- Hook into the rendering of a WordPress Template
- Default taxonomy template in plugin, override in theme
- How to add support for caching plugins for my own plugin?
- WordPress gtag.js with User ID tracking
- WordPress Site is Broken, Cannot see wp-admin page [closed]
- wp_loaded with static Singleton
- How to remove a CPT Menu from the Root Admin only
- Get post_id on clicking a link in WordPress
- WordPress.org: How to add a plugin for certain countries?
- How to remove menus items from Menu section from WordPress theme customizer
- Wp Debug Enabled True Notices and Warning
- Plugin generated unexpected output – No PHP errors
- Extending a theme: build new features as plugin or core modules?
- Select Form Element Not Saving from Plugin Options
- My widget won’t update its values when save is clicked
- How to hide plugin submenu title in drop down in admin panel in wordpress?
- How to create admin setting for this small plugin
- How to set Google Analytics tracking code on WordPress plugin directory page?
- How to fix caching issue in PHP data from database
- Show Custom Post on Frontend
- Problem with checked box on wp car manager plugin
- SASS not showing in customized preloader plugin
- How to securely controlling data without keeping it in postmeta?
- Create a link that calls our custom function in WordPress
- Get a list of Product Categories inside a loop
- WordPress Ajax request “Failed to load resource: the server responded with a status of 400 ()”
- Load my Inline js footer area
- Remove action added in plugin class from theme
- wc_get_product_terms() throws “Notice: Undefined offset: 0”
- Woocommerce list variations that are added already to cart in Single Product
- Can you develop themes and plugins while using the hosting services BlueHost? [closed]
- Using multi-dimensional array with filter
- WordPress Admin sub-level menu issue
- How do I add a textarea (multirow) option to my WordPress plugin?
- PHP header() not available to use in my plugin
- Passing ajax variable to more than one wordpress plugin function
- wordpress ajax pagination object value does not change
- Google analytic issue in wordpress
- Custom pages with plugin
- How to insert category name above post title in a featured pages plugin?
- Displaying friend’s posts only
- Why isn’t my plugin seeing other classes?
- How to add submenu to WordPress plugin in the same Directory of main Plugin?
- How to add jquery to my custom post type wp plugin
- Update post meta not working on wp_postmeta
- Check if user is in a group of another site within multisite network [closed]
- Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites
- Redirect url in plugin to somewhere else?
- How to set-up multiple cron task with wp_schedule_event so that they do not overlap?
- wp_insert_post_data filter to set category
- Site is setup statically – how to make it content managable?
- is there a way I can add or remove some plugin options?
- Modifying lightbox plugin to allow for quoting, Does this exist? [closed]
- What can I do to customize a widget provided with this plugin? from where have I to start?
- Plugin version number after code rewrite [closed]
- How to escape html code?
- Meta box not displaying on the plugin page
- public custom posts not showing in my wordpress plugin
- Allow manage_options capability for specific user only for specific plugin?