开发者 | downtown2017 |
---|---|
更新时间 | 2017年1月30日 21:14 |
fb-viral-downloader
folder to the /wp-content/plugins/
directoryYes, this plugin works really fine with WordPress 4.2.2! It is also compatible for older Wordpress versions upto 3.0.1.
No, the download is only possible when the viewer shares the download link on given social media sites.
Yes, the plugin allows you to share any format of file you want
Yes, the plugin is completely compatible with all the Wordpress themes!
Yes, you can add title and a brief description to the link to be posted on Social Media of the user.
You can either enter the img
tag directly inside the link text or keep the text blank and insert the link then you will find a shortcode added to the visual editor like [viraldownloader id=123 text='']
. Place your custor between the quotes of text=''
and then click on the Add media button and select an image. Make sure Link to is selected none before you insert into post.
You can do it programmatically too just add the following line to your theme's functions.php
file
add_filter( 'fb_viral_downloader_html', 'custom_fb_viral_downloader_html', 10, 3 );
function custom_fb_viral_downloader_html( $text, $id, $share_count ) {
if( $id == 123 ) { //suppose your downloadable id is 123
$text = '';
}
return $text;
}
Yes, you can do it just by adding a few lines to the theme's functions.php
. fb_viral_downloader_html
filter allows you to customize the html. It returns two extra parameters apart from the text, $id
the id of the downloadable post and $share_count
the count of the number of times the post is being shared.
Eg code:
add_filter( 'fb_viral_downloader_html', 'custom_fb_viral_downloader_html', 10, 3 );
function custom_fb_viral_downloader_html( $text, $id, $share_count ) {
return 'Share This to download' . ' (' . $share_count . ')';
}
fb_viral_downloader_html
to customize the download link.