24 |
25 |
26 |
comment_author_email); ?>
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/commentiq.php:
--------------------------------------------------------------------------------
1 | http://elevated.gopostmatic.com.
13 |
14 | ## Installation
15 |
16 | Elevated comments is quite simple. Once activated, it will run automatically. It does not affect your old posts, you will only notice it our new posts and comments moving forward.
17 |
18 | After a new post receives more than three comments the best will automatically be chosen and displayed at about 1/3 of the way through the post.
19 |
20 | #### An Important Consideration
21 |
22 | The contents of your comments will be sent offsite for evaluation. Elevated Comments utilizes the [Comment-IQ API](comment-iq.com) for rating both your posts and comments. Please be sure you are adhering to your local privacy laws.
23 |
24 |
25 | There are two options available, each can be found on the edit > post screen.
26 |
27 | #### Manually place the comment
28 |
29 | Comments can be manually placed on posts by using the following shortcode:
30 | `[elevated-comment]`
31 |
32 | #### Disable comment elevation per post
33 |
34 | If you would like to disable comment elevation on a post you can do so using a checkbox on the Discussion Settings metabox.
35 |
36 | ## Frequently Asked Questions
37 |
38 | #### Will elevated comments show up on my old posts?
39 |
40 | No. The plugin does not retroactively rate your old posts or comments. It will only affect new content moving forward.
41 |
42 | #### Can I change the formatting or markup of the elevated comment?
43 |
44 | Yes. There are a number of classes in place for modifying the styling. You can also override the default template by copying it to your theme directory.
45 |
46 | #### Can I manually choose which comment gets elevated?
47 |
48 | Not at this time.
49 |
50 | #### How is comment relevance determined? Can my users vote?
51 |
52 | Computers are so much better at this than humans. Trust us.
53 |
54 | #### Can I have more than one elevated comment proposed?
55 |
56 | Not yet. There is only one winner. The best comment.
57 |
58 | ## Hooks (Actions and Filters )
59 |
60 | There are several filters.
61 |
62 | ### elevated_api_endpoint
63 |
64 | ```php
65 | /**
66 | * Filter: elevated_api_endpoint
67 | *
68 | * Replace the endpoint with your own.
69 | *
70 | * @since 1.1.0
71 | *
72 | * @param string URL to the endpoint.
73 | */
74 | $this->endpoint_base = apply_filters( 'elevated_api_endpoint', $this->endpoint_base );
75 | ```
76 |
77 | You would use the above filter if