Check if a class exists within a method

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.

Leave a Comment