开发者 |
civilco
jjeaton reaktivstudios |
---|---|
更新时间 | 2017年2月21日 06:01 |
PHP版本: | 4.2 及以上 |
WordPress版本: | 4.7.2 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
civil-comments
to the /wp-content/plugins/
directorywp_login_url()
which can also be filtered.wp_logout_url()
which can also be filtered.Use the civil_custom_js
action. Here is an example to be used in your theme's functions.php:
function prefix_civil_integrate_analytics() {
?>
function myLogEventFunction (eventName, eventData) {
console.log("Civil event called");
console.log("Event Name:", eventName);
console.log("Event Data:", eventData);
// ...add event to your analytics platform
}
Civil({ logEvent: myLogEventFunction });
<?php
}
add_action( 'civil_custom_js', 'prefix_civil_integrate_analytics', 10 );
Yes, in your theme, just create a new template at templates/civil-comments.php
. The template can be completely custom, just place the show_civil_comments()
template tag in that file where you want the comments to be displayed. The default template is located inside this plugin at templates/civil-comments.php
.
Yes. In the Civil Comments setting page, check the box next to Hide Comments Until Clicked
. Comments will be hidden until the user clicks the comments button.
show_civil_comments()
.templates/civil-comments.php
in your active theme to use a custom template.