[wordpress插件] bSocial commentsb社会评论

wordpress 插件 文章 2020-03-12 07:50 422 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

    1. This section needs development.
    2. 本节需要发展。

    3. Adds featured comments selected by editors
    4. 添加编辑选择的精选评论

    5. Adds ability for users to flag comments
    6. 增加了用户标记评论的能力

    7. Adds ability for users to fave comments
    8. 增加了用户收藏评论的能力

    9. Adds support for registering new comment types and statuses, similar to WP core’s register_post_type(), see the section on registering custom comment types
    10. 增加了对注册新评论类型和状态的支持,类似于WP Core的 register_post_type(),请参阅有关注册自定义评论类型的部分

    History

    历史

    Featured comments were originally introduced in bSocial (plugin repo, 插件存储库

    misterbisson/bsocial" rel="nofollow">github), but have moved here.

    misterbisson / bsocial“ rel =” nofollow“> github ),但已移至此处。

    New bSocial commenting features will be developed in this plugin.

    新的bSocial评论功能将在此插件中开发。

    In the WordPress.org plugin repo

    在WordPress.org插件存储库中

    Eventually here: https://wordpress.org/plugins/bsocial-comments/

    最终在这里:https://wordpress.org/plugins/bsocial-comments/

    Fork me!

    叉我!

    This plugin is on Github: https://github.com/misterbisson/bsocial-comments

    此插件位于Github上:https://github.com/misterbisson/bsocial-comments

    Build status

    构建状态

    Master build status at Travis-CI: 在Travis-CI上的主构建状态

    /travis-ci.org/misterbisson/bsocial-comments" rel="nofollow">

    /travis-ci.org/misterbisson/bsocial-comments“ rel =” nofollow“>

    Registering custom comment types

    注册自定义评论类型

    Custom comment types

    自定义评论类型

    `php

     `php

    $args = array(
        

    $ args = array(
        

    ‘labels’ => array(
            

    ‘labels’=> array(
            

    ‘name’ => ‘Faves’,
            

    ‘名称’=>‘收藏夹’,
            

    ‘singular_name’ => ‘Fave’,
            

    ‘singular_name’=>‘Fave’,
            

    ‘edit_item’ => ‘Edit Fave’,
            

    ‘edit_item’=>‘编辑收藏’,
            

    ‘update_item’ => ‘Update Fave’,
            

    ‘update_item’=>‘更新收藏’,
            

    ‘view_item’ => ‘View Fave’,
            

    ‘view_item’=>‘View Fave’,
            

    ‘all_items’ => ‘All Faves’,
        

    ‘all_items’=>‘所有最爱’,
        

    ),
        

    ),
        

    ‘description’ => ‘Comment faves’,
        

    ‘说明’=>‘评论收藏’,
        

    ‘public’ => TRUE,
        

    ‘public’=> TRUE,
        

    ‘show_ui’ => TRUE,
        

    ‘show_ui’=>是,
        

    ‘admin_actions’ => array( ‘trash’, ‘untrash’, ‘delete’ ),
        

    ‘admin_actions’=> array(‘trash’,‘untrash’,‘delete’),
        

    ‘statuses’ => array(
            

    ‘statuses’=>数组(
            

    ‘feedback’,
            

    “反馈”,
            

    ‘trash’,
        

    ‘垃圾’,
        

    ),

    ),

    );

    );

    bsocial_comments()->register()->comment_type( ‘fave’, $args );
        

    bsocial_comments()-> register()-> comment_type('fave',$ args);
        

    `

    `

    Custom comment statuses

    自定义评论状态

    `php

     `php

    $args = array(
        

    $ args = array(
        

    ‘label’=> ‘Feedback’,
        

    ‘label’=>‘Feedback’,
        

    ‘label_count’ => _n_noop( ‘Feedback (%s)’, ‘Feedback (%s)’ ),
        

    ‘label_count’=> _n_noop(‘反馈(%s)’,‘反馈(%s)’),
        

    ‘status_links_show’ => TRUE,
        

    ‘status_links_show’=>是,
        

    ‘include_in_all’ => FALSE,

    ‘include_in_all’=>否,

    );

    );

    bsocial_comments()->register()->comment_status( ‘feedback’, $args );
        

    bsocial_comments()-> register()-> comment_status('feedback',$ args);
        

    `

    `

安装步骤

    1. Place the plugin folder in your wp-content/plugins/ directory and activate it.
    2. 将插件文件夹放置在 wp-content / plugins / 目录中,然后将其激活。

    3. Use the default options, or filter go_config to return the options you want (when the second arg = bsocial-comments).
    4. 使用默认选项,或过滤 go_config 以返回所需的选项(当第二个arg = bsocial-comments 时)。

    5. Have fun, feature some comments!
    6. 玩得开心,发表一些评论!

下载地址
https://downloads.wordpress.org/plugin/bsocial-comments.zip
-EOF-

AI助手支持GPT4.0