{"id":21700129,"url":"https://github.com/wp-digital/wp-block-social-share","last_synced_at":"2026-05-09T05:04:16.652Z","repository":{"id":56991697,"uuid":"432139429","full_name":"wp-digital/wp-block-social-share","owner":"wp-digital","description":"Links to share current post to most used social such as Facebook, Twitter, Email, LinkedIn.","archived":false,"fork":false,"pushed_at":"2023-06-21T11:54:48.000Z","size":1700,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-10-29T22:39:03.863Z","etag":null,"topics":["block","gutenberg-blocks","social-share","wordpress-plugin"],"latest_commit_sha":null,"homepage":"https://demo.wpd.digital/social-share-block/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wp-digital.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-26T10:30:34.000Z","updated_at":"2023-07-23T14:59:47.000Z","dependencies_parsed_at":"2025-03-20T15:42:37.742Z","dependency_job_id":"86880045-5c7f-461e-9cf1-7dadebe60521","html_url":"https://github.com/wp-digital/wp-block-social-share","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/wp-digital/wp-block-social-share","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-digital%2Fwp-block-social-share","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-digital%2Fwp-block-social-share/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-digital%2Fwp-block-social-share/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-digital%2Fwp-block-social-share/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wp-digital","download_url":"https://codeload.github.com/wp-digital/wp-block-social-share/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wp-digital%2Fwp-block-social-share/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32807861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["block","gutenberg-blocks","social-share","wordpress-plugin"],"created_at":"2024-11-25T20:12:57.625Z","updated_at":"2026-05-09T05:04:16.627Z","avatar_url":"https://github.com/wp-digital.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Social Share Block\n\n### Description\n\nLinks to share current post to most used social such as Facebook, Twitter, Email, LinkedIn.\n\n### Demo\n\n[Social Share Block](https://demo.wpd.digital/social-share-block/)\n\n### Install\n\n- Preferable way is to use [Composer](https://getcomposer.org/):\n\n    ````\n    composer require wp-digital/wp-block-social-share\n    ````\n\n- Alternate way is to clone this repo to `wp-content/plugins/`:\n\n    ````\n    cd wp-content/plugins/\n    git clone git@github.com:wp-digital/wp-block-social-share.git\n    ````\n\nActivate **Social Share Block** with [WP-CLI](https://make.wordpress.org/cli/handbook/)\n`wp plugin activate wp-block-social-share` or from **Plugins** page.\n\n### Documentation\n\nAdd, change or remove social with hook `wpd-block-social-share-socials`. If new social\nadded then its URL needs to be implemented via `wpd-block-social-share-$social-url` filter. **Example**:\n\n````\nadd_filter( 'wpd-block-social-share-socials', function ( array $socials ) : array {\n\tunset( $socials['linkedin'] );\n\n\t$socials['pinterest'] = [\n\t\t'label' =\u003e esc_html__( 'Share on Pinterest', 'your-text-domain' ),\n\t\t'icon'  =\u003e '\u003csvg viewBox=\"0 0 496 512\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-hidden=\"false\" focusable=\"false\"\u003e\u003cpath d=\"M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z\" /\u003e\u003c/svg\u003e',\n\t];\n\n\treturn $socials;\n} );\n````\n\n````\nadd_filter( 'wpd-block-social-share-pinterest-url', function ( string $url, int $post_id ) : string {\n\treturn add_query_arg( [\n\t\t'url'  \t      =\u003e get_the_permalink( $post_id ),\n\t\t'description' =\u003e get_the_title( $post_id ),\n\t], 'https://pinterest.com/pin/create/button/' );\n}, 10, 2 );\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-digital%2Fwp-block-social-share","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwp-digital%2Fwp-block-social-share","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwp-digital%2Fwp-block-social-share/lists"}