回答編集履歴
2
読みやすく修正。
answer
CHANGED
@@ -4,9 +4,10 @@
|
|
4
4
|
[https://marubon.info/intro-update-wordpress-plugin-sns-count-Cache-5-5607/](https://marubon.info/intro-update-wordpress-plugin-sns-count-Cache-5-5607/)
|
5
5
|
|
6
6
|
> ```PHP
|
7
|
-
echo scc_get_share_twitter( array( post_id => 'home' ) );
|
7
|
+
> echo scc_get_share_twitter( array( post_id => 'home' ) );
|
8
|
-
```
|
8
|
+
> ```
|
9
9
|
|
10
|
+
|
10
11
|
---
|
11
12
|
|
12
13
|
**追記:**
|
1
情報の追加。
answer
CHANGED
@@ -5,4 +5,15 @@
|
|
5
5
|
|
6
6
|
> ```PHP
|
7
7
|
echo scc_get_share_twitter( array( post_id => 'home' ) );
|
8
|
-
```
|
8
|
+
```
|
9
|
+
|
10
|
+
---
|
11
|
+
|
12
|
+
**追記:**
|
13
|
+
|
14
|
+
URLでも取得できる模様。
|
15
|
+
|
16
|
+
```PHP
|
17
|
+
echo scc_get_share_twitter( array( url => 'ぱーまりんく' ) );
|
18
|
+
echo scc_get_share_twitter( array( post_id=> $post->ID ) );
|
19
|
+
```
|