Function Reference: geodir_jetpack_disable_comments

Summary

Disable JetPack comments on GD post types.

Change Log

Since: 1.6.21

Source File

geodir_jetpack_disable_comments() is located in geodirectory-functions/comments_functions.php [Line: 1058]

Source Code

function geodir_jetpack_disable_comments(){
    //only run if jetpack installed
    if(defined('JETPACK__VERSION')){
        $post_types = geodir_get_posttypes();
        foreach($post_types as $post_type){
            add_filter('jetpack_comment_form_enabled_for_' . $post_type, '__return_false');
        }
    }
}