To check if a plugin is installed and activated, use the is_plugin_active()
function.
Note that you need to include this function first on the front-end before you can use it:
include_once ABSPATH.'wp-admin/includes/plugin.php';
Avoid function_exists()
for doing the check. Plugins may refactor their code and a previously existing function might disappear. You never know.
Related Posts:
- How to use the CSS of the WordPress core in the development of my administration page?
- Best collection of code for your 'functions.php' file [closed]
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- How do I cleanly override a plugin’s CSS with a child theme?
- Is it possible to stop selected plugins from loading on certain template pages?
- How can I make an Ajax login form work with FORCE_SSL_ADMIN enabled?
- Admin plugin, how can I output a different content-type?
- How can I log a user out of WordPress before the page loads?
- Adding a text domain to every __(), _e() and __n() gettext call without a plan to create own translations
- How do I only load a plugin js on it’s settings pages?
- How to enable Admins to see Plugins
- Function to activate WordPress theme inside a plugin
- Seeking clarification on page request life-cycle
- Which functions in theme or plugin load first
- Get info (url) from already enqueued styles
- Bad Request (Invalid Hostname) on working server, database problem
- resize only height using wp_get_image_editor
- WP theme with Backbone
- Translating plugin inside the theme [closed]
- Admin Dashboard with Custom Tab for Client
- Editing Theme to apply Co-Authors Plus
- Include Max mega menu Plugin into theme
- How to integrate plugin in WordPress theme
- How to include plugin without activation?
- How do you remove plugin edit option?
- wordpress reusable content blocks
- Cannot access wp-admin after disabling all plugin
- WordPress logo upload option in theme panel
- wordpress theme backend admin only
- How to send little data between admin pages of my plugin?
- how to load the language file in plugin?
- Editing admin pages in WordPress [closed]
- How to get current post user id
- Different UI in WordPress
- Redux Framework has an embedded demo. Click here to activate the sample config file
- Layout Plugin Admin Pages: Use BootStrap? [closed]
- The problem with WordPress Importer
- Why does my functions.php cause white-screen and media-library issues?
- Is this the right way to execute some PHP in my plugin after a button click on an options page?
- How can I force users to a particular subdomain to log in for MU (Multisite)?
- Display update notification messages like ‘What’s New’
- Display post lists in 2nd paragraph
- do_action() hook into load-(page)
- How can I position ShareThis buttons manually when using the plug-in? [closed]
- Plugin can not display in my custom theme
- How to use get_template part in the plugin?
- WordPress premium theme development [duplicate]
- How can I show a different theme for admin users? WP 3.8+
- How to show the number of website visitors in my theme
- How to write “alt” tag in image for wordpress code?
- Simply poll & Events Calendar plugins clashing
- What form should the $query media query array have for an Elementor page builder function? [closed]
- is_rtl returns false while it should return true
- Set up functions to be overridden without using function_exists() by short-circuiting them?
- Add logo to admin menu in my plugin
- Extending a theme: build new features as plugin or core modules?
- Remember the Meta Value With Radio Buttons
- Error: Can´t access facebook comment plugin admin page
- Theme Functions run a function upon activation or preview
- Polldaddy doesn’t show up on own theme
- Is there a way to insert multiple images into a post at the same time without using a gallery?
- Is there a way to keep youtube videos from displaying on home page, and display only on single posts?
- Yoast SEO Plug In and my Theme duplicating code. Need some feedback on what to do? [closed]
- Gathering all Custom Post Type posts in to array/object the proper way
- Adding a jQuery modal dialog to the admin area
- Redirect plugin after form submit or show errors
- How to create a plugin page that shows XML?
- Janrain/Simple Modal under Redirected Domain
- Warning: Attempt to read property “ID” on null in C:\xampp\htdocs\Nnamdi1\wp-content\plugins\elementor\core\base\document.php on line 250 [closed]
- require_once not working in plugin wordpress
- how to display recent post by category on home page
- How to create admin setting for this small plugin
- WC Fix Attributes – ‘Add New’ Not Searchable/Delayed
- Hide all Admin Notices and move on a separate page
- Unpublished Pages Failing To Appear On Custom Path
- How to Add call button on a featured image in a wpsite? check the slap king image, there are two buttons on the featured image
- WordPress hierarchy clarification, does post_type_archive take precedence over taxonomy-term archive?
- How can I find related learndash course id from woocommerce product object?
- How To Remove “All, Publish, Draft and Expired” in Events Dashboard
- Disqus comment system not show
- Remove action added in plugin class from theme
- Can you develop themes and plugins while using the hosting services BlueHost? [closed]
- Contact form function should be in functions.php or in a plugin file?
- how to add custom css at top above all css file for specific url
- How to enable Admins to see Plugins
- How to add wordpress plugins in along with my standalone theme
- How can I add different menus (different style menu) on each page?
- How to create plugin list groups?
- Site is setup statically – how to make it content managable?
- How can I make a website with dynamic features with wordpress?
- What is the recommended way to be notified of security updates to my plugins? [closed]
- Why plugin’s icon for the menu not found?
- Javascript as Jquery Function Call?
- Detect if you’re in the “Frontend Editor” mode in Visual Composer WordPress [closed]
- Can anyone tell some online tuts for plugin development for beginner? [closed]
- How to escape html code?
- I want to include My theme file (testing.php) to inside my plugin folder (myplugin/mypugin.php)
- How to Enfroce Domain Licensing Limits? [closed]
- Override plugin constant using a theme
- Display Any Field fromAdmin Panel in Frontend via Shortcode?