WX Custom Share

Description

The plugin allow you customize the information when you share link in Wechat to your friend or timeline or in QQ to your friend or QZone.
Customize description and other meta information has supported in version 1.4.

Notice

If you want to share link in Wechat directly, please follow these steps:
1. Verify your account on WeChat Admin Platform.
2. Enter AppID and AppSecret (Development > Basic Configuration).
3. Add your Server IP to IP White List (Development > Basic Configuration > IP whitelist).
4. Add your host to JSAPI Secure Domain (Settings > Account Info > Function setting > JS interface security domain name).
Otherwise you must share link to Wechat via QQ to custom share info, or share in QQ directly.

Premium Version

In Premium Verison, you can:
1. Customize share info of taxonomy (Premium Version) (WordPress 4.4 or later).
2. Use all features included in Free Verison.

Only ¥9 for Premium Version:
https://www.qwqoffice.com/shop.php?mod=product&id=1

Update from previous versions of 1.4.1

Because the post meta key was changed, you must reset all share information after update.

Screenshots

  • WX Custom Share customize information in post edit page.
  • WX Custom Share setting page.
  • Performance in Wechat.
  • Performance in Wechat timeline.
  • Performance in QQ.
  • Performance in QZone.

Installation

Download
Upload to your /wp-contents/plugins/ directory.
Activate the plugin through the ‘Plugins’ menu in WordPress.

Configuration

Go to Setting -> Wechat Share, then check the post type you want to customize the information and save setting. Posts, Pages and Media are default checked post types.

FAQ

Why I can’t find the meta box in other post type?

Go to Setting > Wechat Share, then check the post type you want to customize the information and save setting.

Customize the information is not working when I share link in Wechat directly.

If you want to share link in Wechat directly, please follow these steps:
1. Verify your account on WeChat Admin Platform.
2. Enter AppID and AppSecret (Development > Basic Configuration).
3. Add your Server IP to IP White List (Development > Basic Configuration > IP whitelist).
4. Add your host to JSAPI Secure Domain (Settings > Account Info > Function setting > JS interface security domain name).
Otherwise you must share link to Wechat via QQ to custom share info, or share in QQ directly.

Home page share information setting is not working.

Please go to edit page to set the share information if you choose a page as front page.

How to modify the minimum of first paragraph, which will be showed as the description of post?

Use the filter wxcs_first_paragraph_min_length, example:
add_filter( 'wxcs_first_paragraph_min_length', 'change_first_paragraph_min_length' );
function change_first_paragraph_min_length(){
return 5;
}

How to modify the default share title format?

Use the filter wxcs_share_title_format, example:
add_filter( 'wxcs_share_title_format', 'change_wxcs_share_title_format' );
function change_wxcs_share_title_format(){
return '{{title}} | {{blogname}}';
}

Reviews

December 22, 2017
Hi使用woocommerce在微信内部打开网站产品连接进行朋友圈分享,所有都不带缩略图;进行发送给朋友,有的产品有缩略图,有的产品没有缩略图。 微信公众号设置完全按照插件的instructions来设置,应该是完全没有错误,服务号也认证了。 请问是哪里可能出现了问题呢? 非常感谢!
Read all 1 review

Contributors & Developers

“WX Custom Share” is open source software. The following people have contributed to this plugin.

Contributors

“WX Custom Share” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “WX Custom Share” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.6

  • Add: Purge the AccessToken and JS Ticket when change the AppID or AppSecret.
  • Add: filter wxcs_share_info for other plugin modify share info.
  • Add: filter wxcs_share_title_format for other plugin modify default share title.
  • Add: default title and default description setting.
  • Updated: use default share setting in the other page.
  • Updated: remove enabled post types setting.
  • Updated: hide home page share setting when use a page as front page.
  • Updated: add WooCommerce MiniProgram banner.
  • Fixed: share info not working in some themes.

1.5.9

  • Updated: Replace IP API by http://ip.taobao.com/service/getIpInfo.php?ip=myip.

1.5.8

  • Fixed: Settings page is empty.

1.5.7

  • Add: Now you can use the page actual url instead of page permalink.
  • Enhance: Support other page share info ( the page which except taxonomy, post type and home page ).
  • Enhance: Adjust location of share js file and share script.
  • Fixed: PHP Fatal error caused by function is_api_error.

1.5.6

  • Fixed: Share info cannot be saved after click Update button.

1.5.5

  • Fixed: JSTicket outputed to ajax result caused security issue.
  • Updated: The tag Tested up to in readme.
  • Enhance: Debug mode now include the request error.
  • Enhance: Use Native JS instead of jQuery for Ajax.
  • Enhance: Support customize share info of taxonomy (Premium Version) (WordPress 4.4 or later).

1.5.4

  • Fixed: share info not effective when WeChat JSAPI return a error.

1.5.3

  • Fixed the PHP Fatal error caused by missing argument of function wxcs_is_api_error.

1.5.2

  • Use the WordPress Settings API instead.
  • Use Ajax to ensure get the correct share info.
  • Add the location of JSAPI Secure Domain and IP White List.

1.5.1

  • Show Public IP in setting page.
  • Change language of plugin description to zh_CN.

1.5

  • Add Home Page Share Setting.
  • Add Default Icon Setting.
  • Use first image as icon from post content when icon and feature image are both not set.
  • Use first paragraph that length higher than 10 as description from post content when description not set.

1.4.4

  • Use wp_remote_get instead of file_get_contents.

1.4.3

  • Support WordPress Multisite.
  • Update FAQ.

1.4.2

  • Bug fixed:PHP version <= 5.3 not support [] array define.

1.4.1

  • Improved use experience and bug fixed.

1.4

  • Support both Wechat and QQ.
  • Support customize title, description and share url.
  • Add debug mode, error log will be print to console.

1.3.3

  • Add the notice of wechat share directly.

1.3.2

  • Updated the Text Domain.

1.3.1

  • Bug fixed.

1.3

  • Integrated code into one file.

1.2

  • Add multi language.

1.1

  • Allow select to support other post type.
  • Provide a realtime box to show your share link look like.

1.0

  • The first version.