{"id":26279,"date":"2013-11-20T16:57:40","date_gmt":"2013-11-20T16:57:40","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/dvk-social-sharing\/"},"modified":"2026-02-13T08:56:55","modified_gmt":"2026-02-13T08:56:55","slug":"dvk-social-sharing","status":"publish","type":"plugin","link":"https:\/\/ca-valencia.wordpress.org\/plugins\/dvk-social-sharing\/","author":6655719,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.3.10","stable_tag":"1.3.10","tested":"6.9.4","requires":"3.7","requires_php":"7.2","requires_plugins":null,"header_name":"Social Sharing (by Danny)","header_author":"ibericode","header_description":"","assets_banners_color":"fafeff","last_updated":"2026-02-13 08:56:55","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.dannyvankooten.com\/donate\/","header_plugin_uri":"https:\/\/dannyvankooten.com\/wordpress-plugins\/","header_author_uri":"https:\/\/dannyvankooten.com\/","rating":5,"author_block_rating":0,"active_installs":2000,"downloads":120447,"num_ratings":68,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.6":{"tag":"1.0.6","author":"DvanKooten","date":"2013-12-30 14:16:41"},"1.0.9":{"tag":"1.0.9","author":"DvanKooten","date":"2013-12-30 17:30:46"},"1.1":{"tag":"1.1","author":"DvanKooten","date":"2014-02-20 09:58:21"},"1.2":{"tag":"1.2","author":"DvanKooten","date":"2014-03-19 19:22:39"},"1.2.1":{"tag":"1.2.1","author":"DvanKooten","date":"2014-04-29 10:10:34"},"1.2.2":{"tag":"1.2.2","author":"DvanKooten","date":"2014-07-20 21:09:31"},"1.2.3":{"tag":"1.2.3","author":"DvanKooten","date":"2014-09-04 21:23:32"},"1.2.4":{"tag":"1.2.4","author":"DvanKooten","date":"2014-11-17 14:08:23"},"1.2.5":{"tag":"1.2.5","author":"DvanKooten","date":"2015-01-26 13:35:27"},"1.2.6":{"tag":"1.2.6","author":"DvanKooten","date":"2016-03-29 15:38:35"},"1.2.7":{"tag":"1.2.7","author":"DvanKooten","date":"2017-01-06 12:45:30"},"1.3":{"tag":"1.3","author":"DvanKooten","date":"2017-10-04 08:52:00"},"1.3.1":{"tag":"1.3.1","author":"DvanKooten","date":"2017-10-26 08:16:59"},"1.3.10":{"tag":"1.3.10","author":"DvanKooten","date":"2026-02-13 08:56:55"},"1.3.2":{"tag":"1.3.2","author":"DvanKooten","date":"2018-03-23 10:49:45"},"1.3.3":{"tag":"1.3.3","author":"DvanKooten","date":"2019-12-31 11:13:57"},"1.3.4":{"tag":"1.3.4","author":"DvanKooten","date":"2024-03-22 14:02:33"},"1.3.5":{"tag":"1.3.5","author":"DvanKooten","date":"2024-10-01 12:40:29"},"1.3.6":{"tag":"1.3.6","author":"DvanKooten","date":"2024-10-01 15:32:55"},"1.3.7":{"tag":"1.3.7","author":"DvanKooten","date":"2024-10-01 15:34:21"},"1.3.8":{"tag":"1.3.8","author":"DvanKooten","date":"2024-10-11 09:41:25"},"1.3.9":{"tag":"1.3.9","author":"DvanKooten","date":"2024-10-16 11:05:22"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":"2","5":"67"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":808288,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.6","1.0.9","1.1","1.2","1.2.1","1.2.2","1.2.3","1.2.4","1.2.5","1.2.6","1.2.7","1.3","1.3.1","1.3.10","1.3.2","1.3.3","1.3.4","1.3.5","1.3.6","1.3.7","1.3.8","1.3.9"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":807650,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":807650,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":807665,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"Simple but beautiful sharing links add the end of your posts.","2":"Disable the default plugin CSS to create your own styles.","3":"The settings page of the plugin."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[157,313,174,1540,159],"plugin_category":[56],"plugin_contributors":[77662,77661],"plugin_business_model":[],"class_list":["post-26279","plugin","type-plugin","status-publish","hentry","plugin_tags-facebook","plugin_tags-linkedin","plugin_tags-social","plugin_tags-social-sharing","plugin_tags-twitter","plugin_category-social-and-sharing","plugin_contributors-dvankooten","plugin_contributors-ibericode","plugin_committers-dvankooten"],"banners":{"banner":"https:\/\/ps.w.org\/dvk-social-sharing\/assets\/banner-772x250.png?rev=808288","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/dvk-social-sharing_fafeff.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/dvk-social-sharing\/assets\/screenshot-1.png?rev=807650","caption":"Simple but beautiful sharing links add the end of your posts."},{"src":"https:\/\/ps.w.org\/dvk-social-sharing\/assets\/screenshot-2.png?rev=807650","caption":"Disable the default plugin CSS to create your own styles."},{"src":"https:\/\/ps.w.org\/dvk-social-sharing\/assets\/screenshot-3.png?rev=807665","caption":"The settings page of the plugin."}],"raw_content":"<!--section=description-->\n<h4>Social Sharing By Danny<\/h4>\n\n<p>The simplest sharing links possible for Twitter, Facebook and LinkedIn.<\/p>\n\n<p>Most WordPress plugins that add social sharing functionality are too ugly, heavy, complicated or poorly coded for my liking. This plugin aims to be better: simple, efficient and flexible.<\/p>\n\n<h4>No script dependencies<\/h4>\n\n<p>From itself, the buttons are actually plain text links which require <strong>no external scripts<\/strong>. It makes no sense to load over 50 kilobytes of scripts and styles for a functionality 95% of your users will not use.<\/p>\n\n<h4>Simple, yet pretty and user-friendly<\/h4>\n\n<p>You can have the plugin load two very small files to add icons and a pop-up functionality to the sharing links. This way, users do not have to leave your website after clicking a sharing option. Both files are optional and you are free to craft your own styles.<\/p>\n\n<p><strong>Features<\/strong><\/p>\n\n<ul>\n<li>Sharing links for Twitter, Facebook and LinkedIn<\/li>\n<li>Simple icon styles with a hover effect<\/li>\n<li>Simple script of just 426 bytes (with no additional dependencies) which will make the various sharing links open in a pop-up window.<\/li>\n<li>A shortcode and a template function to display the buttons anywhere you want.<\/li>\n<li>An overridable filter to customize when and where to display the sharing links.<\/li>\n<li>Translation ready<\/li>\n<\/ul>\n\n<p><strong>Translations<\/strong><\/p>\n\n<p>Is the plugin not translated into your language? You can <a href=\"https:\/\/translate.wordpress.org\/projects\/wp-plugins\/dvk-social-sharing\/\">contribute your translations using the translation editor here on WordPress.org<\/a>.<\/p>\n\n<p><strong>About the author<\/strong><\/p>\n\n<p>Danny van Kooten has been developing plugins for WordPress since version 3.0, all the way back in 2010. You can read more about him on <a href=\"https:\/\/www.dannyvankooten.com\/\">his personal website<\/a> or check out his other <a href=\"https:\/\/dannyvankooten.com\/wordpress-plugins\/\">WordPress plugins<\/a>.<\/p>\n\n<!--section=installation-->\n<h4>Installing the plugin<\/h4>\n\n<ol>\n<li>In your WordPress admin panel, go to <em>Plugins &gt; New Plugin<\/em>, search for <em>Social Sharing by Danny<\/em> and click \"Install now\"<\/li>\n<li>Alternatively, download the plugin and upload the contents of <code>dvk-social-sharing.zip<\/code> to your plugins directory, which usually is <code>\/wp-content\/plugins\/<\/code>.<\/li>\n<li>Activate the plugin.<\/li>\n<\/ol>\n\n<h4>Additional Customization<\/h4>\n\n<p>Have a look at the <a href=\"https:\/\/wordpress.org\/plugins\/dvk-social-sharing\/faq\/\">frequently asked questions<\/a> section for some examples of additional customization.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id=\"can%20i%20display%20the%20sharing%20buttons%20using%20a%20shortcode%3F\"><h3>Can I display the sharing buttons using a shortcode?<\/h3><\/dt>\n<dd><p>Yes, you can use the following shortcode (eg. inside posts or pages).<\/p>\n\n<pre><code>[dvk_social_sharing]\n<\/code><\/pre><\/dd>\n<dt id=\"can%20i%20display%20the%20sharing%20buttons%20using%20a%20template%20function%3F\"><h3>Can I display the sharing buttons using a template function?<\/h3><\/dt>\n<dd><p>Yes, you can use the following PHP function from your template files.<\/p>\n\n<pre><code>&lt;?php echo dvk_social_sharing(); ?&gt;\n<\/code><\/pre><\/dd>\n<dt id=\"i%20want%20more%20control%20over%20when%20to%20show%20the%20sharing%20options\"><h3>I want more control over when to show the sharing options<\/h3><\/dt>\n<dd><p>Use the <code>dvkss_display<\/code> filter to show the links in more places.<\/p>\n\n<p><em>Example 1: will add the sharing links to everything possible<\/em><\/p>\n\n<pre><code>add_filter('dvkss_display', '__return_true');\n<\/code><\/pre>\n\n<p><em>Example 2: will add the sharing links to all single posts, pages and other post types.<\/em><\/p>\n\n<pre><code>function my_display_condition() {\n    return is_singular();\n}\n\nadd_filter('dvkss_display', 'my_display_condition');\n<\/code><\/pre><\/dd>\n<dt id=\"shortcode%20and%20function%20arguments\"><h3>Shortcode and function arguments<\/h3><\/dt>\n<dd><p><strong>element<\/strong> (string)<\/p>\n\n<p>The element to use as the wrapping element. Defaults to <code>p<\/code>, a paragraph element.<\/p>\n\n<p><strong>twitter_username<\/strong> (string)<\/p>\n\n<p>The Twitter username to add to tweets. This will override the value from the settings page.<\/p>\n\n<p><strong>social_options<\/strong> (comma separated string)<\/p>\n\n<p>The social media buttons to show. You can also use this to change the order of the buttons. Defaults to <code>twitter, facebook, googleplus<\/code>, which are the only 3 possible values.<\/p>\n\n<p><strong>before_text<\/strong>  (string)<\/p>\n\n<p>The text to show before the links. This will override the value in the settings page.<\/p>\n\n<p><strong>twitter_text<\/strong> (string)\n<strong>facebook_text<\/strong> (string)\n<strong>googleplus_text<\/strong> (string)\n<strong>linkedin_text<\/strong> (string)<\/p>\n\n<p>The texts for the different links. Defaults to the string set in the translation file.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.3.10 - Feb 13, 2026<\/h4>\n\n<ul>\n<li>Link to x.com instead of twitter.com<\/li>\n<li>Ensure settings are autoloaded correctly.<\/li>\n<li>Use short array syntax everywhere.<\/li>\n<li>Explicitly specify number of accepted arguments for all hooks.<\/li>\n<\/ul>\n\n<h4>1.3.9 - Oct 16, 2024<\/h4>\n\n<ul>\n<li>Address PHP warning introduced by version 1.3.8.<\/li>\n<\/ul>\n\n<h4>1.3.8 - Oct 11, 2024<\/h4>\n\n<ul>\n<li>Escape shortcode arguments before outputting to prevent stored XSS from users with <code>edit_post<\/code> capability. Thanks to <a href=\"https:\/\/peterthaleikis.com\/\">Peter Thaleikis<\/a> for the responsible disclosure.<\/li>\n<\/ul>\n\n<h4>1.3.7 - Oct 1, 2024<\/h4>\n\n<ul>\n<li>Remove Google Plus as an option, since it has long been shut down.<\/li>\n<li>Add <code>defer<\/code> attribute to pop-up script tag.<\/li>\n<li>Improved sanitization of settings.<\/li>\n<li>Disallow the use of <code>&lt;a&gt;<\/code> elements in the <code>before_text<\/code> setting if user lacks <code>unfiltered_html<\/code> capability.<\/li>\n<li>Get rid of ES6 code in JavaScript files, to support older browsers.<\/li>\n<\/ul>\n\n<h4>1.3.4 - Dec 23, 2022<\/h4>\n\n<ul>\n<li>Rewrite admin JavaScript to no longer require jQuery.<\/li>\n<li>Minor PHP improvements.<\/li>\n<li>Improved minification of all CSS and JS assets.<\/li>\n<\/ul>\n\n<h4>1.3.3 - Dec 31, 2019<\/h4>\n\n<ul>\n<li>Remove unused LinkedIn parameters.<\/li>\n<li>Switch to WordPress.org managed translations.<\/li>\n<\/ul>\n\n<h4>1.3.2 - March 23, 2018<\/h4>\n\n<ul>\n<li>Minor code optimisations<\/li>\n<li>Added <code>linkedin_text<\/code> shortcode argument to FAQ.<\/li>\n<\/ul>\n\n<h4>1.3.1 - October 26, 2017<\/h4>\n\n<p>Misc. textual improvements.<\/p>\n\n<h4>1.3 - October 4, 2017<\/h4>\n\n<p><strong>Additions<\/strong><\/p>\n\n<ul>\n<li>Added LinkedIn.<\/li>\n<\/ul>\n\n<h4>1.2.7 - January 6, 2017<\/h4>\n\n<p><strong>Improvements<\/strong><\/p>\n\n<ul>\n<li>Use <code>https:\/\/<\/code> protocol for sharing links.<\/li>\n<li>Use SVG icons.<\/li>\n<\/ul>\n\n<p><strong>Additions<\/strong><\/p>\n\n<ul>\n<li>Add \"large\" icon size option.<\/li>\n<li>Choose social network options from settings page.<\/li>\n<li>Added Italian translations, thanks to Alessandro Guidi.<\/li>\n<\/ul>\n\n<h4>1.2.6 - March 29, 2016<\/h4>\n\n<p><strong>Fixes<\/strong><\/p>\n\n<ul>\n<li>Apostrophes in titles not properly escaped in sharing URL's. Thanks Robin Aldenhoven!<\/li>\n<\/ul>\n\n<h4>1.2.5 - January 26, 2015<\/h4>\n\n<p><strong>Improvements<\/strong><\/p>\n\n<ul>\n<li>Minor improvements to pop-up script<\/li>\n<\/ul>\n\n<p><strong>Additions<\/strong><\/p>\n\n<ul>\n<li>Added Finnish (fi_FI) translations, thanks to <a href=\"http:\/\/versi.fi\/\">Ari-Pekka Koponen<\/a><\/li>\n<\/ul>\n\n<h4>1.2.4 - November 17, 2014<\/h4>\n\n<p><strong>Improvements<\/strong><\/p>\n\n<ul>\n<li>Wrapped link text in element so it can be hidden using CSS<\/li>\n<li>Improvements to pop-up JavaScript<\/li>\n<\/ul>\n\n<h4>1.2.3 - September 4, 2014<\/h4>\n\n<p><strong>Improvements<\/strong><\/p>\n\n<ul>\n<li>Added minified scripts and option to load minified version<\/li>\n<li>Some textual improvements<\/li>\n<\/ul>\n\n<h4>1.2.2 - April 30, 2014<\/h4>\n\n<p><strong>Fixes<\/strong><\/p>\n\n<ul>\n<li>Fixed not being able to save all \"auto add to ..\" checkboxes unchecked<\/li>\n<\/ul>\n\n<h4>1.2.1 - April 29, 2014<\/h4>\n\n<p><strong>Additions<\/strong><\/p>\n\n<ul>\n<li>Added German translations, thanks Andreas Kuhl!<\/li>\n<\/ul>\n\n<p><strong>Improvements<\/strong><\/p>\n\n<ul>\n<li>Wrapped non-translatable strings in translation calls.<\/li>\n<li>Updated Dutch translations<\/li>\n<\/ul>\n\n<h4>1.2 - March 19, 2014<\/h4>\n\n<p><strong>Additions<\/strong><\/p>\n\n<ul>\n<li>Added option to automatically add sharing options to all registered post types<\/li>\n<li>Added Spanish translations, props to <a href=\"http:\/\/cbasites.net\/\">Luciano A. Ferrer<\/a>.<\/li>\n<\/ul>\n\n<p><strong>Improvements<\/strong><\/p>\n\n<ul>\n<li>Disabled Pop-up JS by default until we figure out a cross-browser compatibility fix.<\/li>\n<\/ul>\n\n<h4>1.1 - February 19, 2014<\/h4>\n\n<ul>\n<li>Added: Slovenian translations, thanks to <a href=\"http:\/\/www.vikingmarketing.si\/\">Domen Hrabar, Viking Marketing<\/a><\/li>\n<li>Improved: direct file access security<\/li>\n<\/ul>\n\n<h4>1.0.9 - December 30, 2013<\/h4>\n\n<ul>\n<li>Added: Danish translation, thanks to <a href=\"http:\/\/fhn.dk\/\">Finn Hoelgaard<\/a>!<\/li>\n<li>Added: Russian translation, thanks to Nikita!<\/li>\n<li>Improved: Pop-up script now waits for full page load.<\/li>\n<\/ul>\n\n<h4>1.0.6 - December 20, 2013<\/h4>\n\n<ul>\n<li>Improved: Pop-up JS now used addEventListener to enable multiple event listeners (like a Google Analytics plugin) attaching to the sharing links.<\/li>\n<\/ul>\n\n<h4>1.0.5 - December 9, 2013<\/h4>\n\n<ul>\n<li>Added: French translations, thanks to <a href=\"http:\/\/www.ninapeople.com\/\">Said<\/a><\/li>\n<li>Improved: All backend strings are now translatable<\/li>\n<li>Improved: Prevented direct access or search engine indexing of plugin files<\/li>\n<li>Improved: Facebook URL sharing parameters<\/li>\n<\/ul>\n\n<h4>1.0.4 - December 2, 2013<\/h4>\n\n<ul>\n<li>Improved: Minified pop-up script to 480 bytes.<\/li>\n<li>Improved: Removed image attribute from Facebook Share URL. FB will now pick up <code>og:image<\/code> meta tags.<\/li>\n<\/ul>\n\n<h4>1.0.3 - November 25, 2013<\/h4>\n\n<ul>\n<li>Fixed: undefined index notice when saving options.<\/li>\n<\/ul>\n\n<h4>1.0.2 - November 20, 2013<\/h4>\n\n<ul>\n<li>Added: Dutch translation<\/li>\n<li>Added: Option to change the text that shows before the sharing links.<\/li>\n<\/ul>\n\n<h4>1.0.1 - November 20, 2013<\/h4>\n\n<ul>\n<li>Fixed: Added settings link to plugins overview page<\/li>\n<li>Fixed: \"tweet about\" option in admin now tweets about the correct plugin.<\/li>\n<\/ul>\n\n<h4>1.0 - November 17, 2013<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Adds social sharing buttons for Twitter, Facebook and LinkedIn to your blog posts or pages.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/26279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=26279"}],"author":[{"embeddable":true,"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/dvankooten"}],"wp:attachment":[{"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=26279"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=26279"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=26279"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=26279"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=26279"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=26279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}