You should use is_plugin_active()
method to check if a certain plugin is activated. The class Facebook_WP
will still exists even you deactivate the plugin.
Related Posts:
- Should all plugins be encapsulated in a Class?
- How do I extend one plugin I’m writing with another I’m writing using classes?
- Most efficient way to use classes to create admin pages using Settings API
- Basic Object Oriented plugin question
- Using plugin functions/methods within templates
- Why is my custom post type not being activated on plug-in activation?
- Built a second plugin but it overwrote the first one
- WordPress Custom Hook with Class method
- WordPress plugin blog creation
- Get post content inside plugin class method
- Autoloading a PHP class – working outside, but not inside WordPress plugin
- private functions in plugins
- Strict Standards: Non-static method in sidebar generator
- Function not being called on form submit, only blank admin-post.php page
- Disable email notification after change of password
- Run WP-CLI using PHP
- How to remove duplicate sub-menu name for top level menu items in a plugin?
- Plugin update error message
- How to build an API as a plugin
- category_name not working (not showing up in sql query debug)
- PHP Deprecated: Non-static method should not be called statically
- Update Multiple Post Meta for the Same Post In One call?
- WordPress Hook that will run when media file deleted
- Set a User as Author of all ‘New Posts’ posted
- How do I configure WordPress to talk to a Microsoft SQL Server database?
- Trying to get logged-in user data inside php class
- Calling function from within functions.php returns unwanted value
- White text on white background in TinyMCE when wp_editor is called in WP 3.9
- Is it possible to filter the wp_footer() scripts, read the content, and insert them inline?
- Loading class files via autoload method
- Adding a custom line of text to php code
- plugins_url() incorrectly returns a url with www subdomain
- How to redirect Old Post URL to new Post and keep Old post Comments?
- Getting media library popup in custom plugin admin page
- How to add pagination to wpbakery grid?
- Escape when echoed
- add_meta_box (Will display only in specific page admin WordPress)
- How to write one comment and publish on every post using database or plugin?
- Why wp_mail() function isn’t sending any emails and displaying ‘0’ in Chrome ‘Network’ response
- How can I display a contact form for out of stock products in WooCommerce?
- How to get number of Affected rows from wordpress dbDelta() function
- Redirecting to home page after login as custom role WordPress
- How to stop or remove an action being called inside a function of an extended class
- Date calculations from 2 custom fields
- Error with Image Slide plug-in/ s3slider in WP
- Easiest way to add dropdown to a page
- Assign / update custom field value for all posts (How can I assign only to posts without custom field value?)
- How to enable specific plugin only based around shop manager role?
- Changing “elapsed time” to “time remaining” on MP3-jPlayer audio player with CSS or PHP changes
- Adding a new field to the address field type in gravity forms
- Show admin notice on incorrect value on form field
- WordPress adding a menu page when activating a plugin
- Redirect to another page using contact form 7? [closed]
- Is there a function to list all uploaded images? How can I add one?
- Api external with wordpress
- speed up pagination for huge database
- Using meta_query in a WP_Query not working for numbers properly
- WP Insert Post If user refreshes override new post
- Code for unique user visit count on every page WordPress
- Searching a tab/space delimited text file based upon form criteria and returning a ‘record’ into a word press results page
- WordPress is redirecting me to homepage
- How can we get this dynamically as this folder may not be by the same name always → wp-admin
- Cant create table on plugin activation
- Custom Plugin: How to Include Install Buttons of other 3rd Party Plugins?
- Redirect to a page while maintaining search query parameters without causing an infinite loop
- How to ignore fields if empty?
- Why is my shortcode not working?
- Moving a few select DB tables to a new WP instance
- Cron job shedules replace?
- Create a form and have custom menu display based on user answers?
- How to get the total count of Favorite/Favorited authors
- Admin login substantially slower on production server
- redirect to a custom page
- Problem with conditional woocommerce custom checkout field
- How to change text in a page by utilizing a custom user id?
- How can I insert a record into a custom table from my custom form in my custom admin page?
- Editing Global Variables from Inside Functions
- Posting code inside the post instead of in the template file using shortcode
- Why function hooked using object are executing at all time?
- Metabox Data not saving
- conditional tags for the output of a plugin
- Can’t insert files in other inputs
- Including a PHP file via a function that is part of a plugin?
- How do I output user_registered time in my correct timezone?
- How to tweak a plugin without preventing it from updating
- Place max_execution_time in plugin [closed]
- Creating a press page for our project
- how to search through plugin in wordpress cimy-user-extra-fields?
- Integrate Razorpay quick payments plugin with contact form7 plugin
- wordpress illegal string offset ‘parameter’ error
- Translate text for empty product
- cURL External API request displays content above other content on page
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- Posts in Admin only display 1 Post instead of all Post in admin area
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- WordPress Convert queries to slashes using function.php
- Creating a Table Row by Row
- Getting 504 Gateway Timeout Error on AWS Server! [closed]
- WordPress issue – data is not showing in wp-admin, but when searching through database, all the data is there
- WordPress Throwing Deprecated Errors on its own Files