Most themes used comments_template to include their comment areas. It’s completely full of filters, one of which is the include file (usually comments.php) that you can hijack to include a file from your plugin that contains all the stuff for facebook comments (or nothing if you just want to disable comments.
Example:
<?php
add_filter( 'comments_template', 'wpse35363_comments_template' );
function wpse35363_comments_template( $file )
{
return plugin_dir_url( __FILE__ ) . 'path/to/your/file.php';
}
As far as general settings and per post settings, those are stored in wp_options and wp_postmeta respectively. Take a look at how the default comments compat file looks and you should get an idea about how you can do this in your plugin.
Related Posts:
- Custom avatars in wordpress comments?
- Writing a plugin that notify my friends of new post that mentions(@) them
- Why are two functions over-riding each other?
- Comment `Reply` link doesn’t work if comments are loaded from ajax
- comment_email hook doesn’t seem to work for comment editor field
- Show comments fields in two columns
- Prevent Javascript Facebook SDK Conflicts in plugin
- preprocess_comment array doesn’t have comment_ID
- How do I alter the comment form ‘allowed tags’ text in a plugin?
- Can wp_list_comments output into variable?
- Comments do not respect display_name setting, how to make plugin to overcome this
- $reverse_top_level works the opposite way according to Codex?
- How to integrate CLEditor to comment system?
- Get attachments from a post
- Writing a wordpress plugin and trying to include the Facebook PHP SDK
- is pre_get_comments not working?
- How to replace default comments with custom HTML?
- how to load the comment template from a plugin
- How to get the number of pages when paginating comments?
- How does “Your comment is awaiting moderation” work?
- how to get the top 10 popular blogs
- How to show comments from different Plugins to same post type?
- How to check if `comment_meta` exists before inserting the comment?
- How to get the `comment_post_ID`?
- How to remove WordPress Default Comment? not Facebook
- Email content as comment
- Stop theme displaying comments
- How to import facebook comments to WordPress database?
- Get Commentor IP When Marking Comment As Spam
- isset($_POST[‘submit’]) ignored on comment submission
- Facebook share button help
- $wpdb->update Issue
- Checking for existing title in custom db query not working
- Borrowing of Previously Translated Strings by Child Plugin
- Enqueue scripts inside a class in a plugin
- Adding filter to the title without affecting the menu title
- Redirect User to custom URL after registering
- Load php file with jquery in single.php
- How can I change my assigned user role in WordPress 3.5.1?
- Facebook comments widget – App ID
- Listing wordpress users with a search function
- Is there anything special required to make a plugin work in a multisite environment?
- Restrict certain actions to plugin-specific admin menu pages only
- How to relate the Category to user?
- How to validate inputs with filter in register_setting callback
- WordPress Page Reload Takes forever during theme development
- Cannot stop wpautop from messing up my plug-in output
- How to get post meta in functions?
- Enqueue ONLY Plugin Styles and Scripts
- Plugin’s total number of users
- How to edit wp-signup.php content using plugin
- How to Find a Gallery’s ID
- How to close tinymce inline popup
- AJAX request not routing through proxy
- How can I prevent ‘500 internal server error’ because of a long install process?
- My plugin won’t create table in wordpress 3.5
- Remove Permalink Meta Box not working?
- How do i remove the title from a specific page
- Can / should a widget plugin define its own Widget Area?
- WordPress actions for plugin admin UI page
- How to get changed post title in my custom plug-in which fires when ‘save_post’ is called?
- wp_insert_user keeps echoing values
- Rewriting Image URLs from dynamic to original
- Getting posts by taxonomy
- WordPress templating system for custom plugins
- Lead form that submits to 2 external APIs
- Creating open content area and restricted content area
- How do I duplicate a single post, with all its properties, and save it as a different post?
- Remove Meta-boxes (Yoast SEO plugin) [duplicate]
- Can I use a custom post type as a custom taxonomy for a different custom post type?
- WooCommerce currency converter support [closed]
- Woocommerce – looping product images
- I need to disable Disqus comments pre-approval, but i can’t find where
- How Can I Add Code To A Preexisting Function Without Editing it
- JQuery Slider – Similar to www.internetmarketinginc.com [closed]
- Changing permalink structure breaks link to .php file which generates files dynamically
- Is there an action_filter hook to add content before the post title?
- CSS not being applied using wp_enqueue_style
- wp_enqueue_scripts in a plugin’s class
- Is there a way to add a link with add_post_meta?
- Proper way to create an administration page without adding it to the menu
- WordPress Plugin Authoring question about jquery and css
- How to output CSS to the beginning of the stylesheet in a WordPress Plugin
- How to move an image in a plugin to the upload directory and make it as a media of wordpress?
- Adding Permalink to Slides with ‘Simple Nivo Slider’ plugin?
- Loading Images from Javascript on the Front End
- How to add a new taxonomy link to the admin menu
- Many Single Sites, One Plugin directory – adjust plugins_url()
- insufficient permissions; coding an action for plugin governed by custom capability
- wp_insert_post generated mixed permalinks
- Adjust query on single
- How to call function from another plugin?
- Get coordinates of selected area to use in image maps [closed]
- Plugin won’t activate
- Adding tables to dashboard pages programmatically?
- dbdelta failing with error: “WordPress database error Table ‘wp_2_myPlugin’ already exists
- How to exclude categories from get_categories() select list inside a widget admin panel
- Setting a post’s category
- Plugin access to average users not only admin
- Setting post_id for single.php based on URL without a redirect