Relevant Social URL

外掛說明

This plugin adds a field to the WordPress editor sidebar which allows you to paste the URL to a social media post that is associated with the post on your WordPress site. The URL is then stored in post meta and can be used to e.g. display the relevant social media post URL in the frontend.

By default, the plugin will append the link to the post content in the frontend. This can be disabled via filter though in favor of manual output elsewhere.

You can paste any URL into the field, regardless of social media platform. That said, the plugin will automatically recognize certain providers and adjust the message displayed in the frontend accordingly, referencing the specific provider when possible. The following providers are explicitly supported (in alphabetical order):

  • Bluesky
  • Facebook
  • GitHub
  • Instagram
  • LinkedIn
  • SoundCloud
  • Spotify
  • Threads
  • TikTok
  • Twitter
  • Tumblr
  • WordPress
  • WordPress.com
  • X
  • YouTube

No third-party APIs are called by this plugin and no data is sent to any of these providers by the plugin.

安裝方式

  1. Upload the entire relevant-social-url folder to the /wp-content/plugins/ directory or download it through the WordPress backend.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.

常見問題集

Where can I configure the plugin?

This plugin doesn’t come with a settings screen or options of any kind. As soon as you install it, you should see the input field in the sidebar when editing a post.

How can I enable the functionality on other post types?

This is very straightforward using the built-in filter relsoc_post_types.

For example, the following snippet would additionally show the input field for pages and output the social media post link in the frontend on pages too:

add_filter(
    'relsoc_post_types',
    function ( $post_types ) {
        $post_types[] = 'page';
        return $post_types;
    }
);

How can I disable frontend output of the social media post link?

Simply use the built-in filter relsoc_frontend_output_enabled. For example, to disable output:

add_filter( 'relsoc_frontend_output_enabled', '__return_false' );

How can I customize the frontend output of the social media post link?

You can modify the text that is displayed for the link, replacing the default of “This post also appeared on {social media platform}.”.

You can do so by providing your own text via the built-in relsoc_frontend_link_text filter.

Where should I submit my support request?

For regular support requests, please use the wordpress.org support forums. If you have a technical issue with the plugin where you already have more insight on how to fix it, you can also open an issue on GitHub instead.

How can I contribute to the plugin?

If you have ideas to improve the plugin or to solve a bug, feel free to raise an issue or submit a pull request in the GitHub repository for the plugin. Please stick to the contributing guidelines.

You can also contribute to the plugin by translating it. Simply visit translate.wordpress.org to get started.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Relevant Social URL〉的開發相關工作。

參與者

將〈Relevant Social URL〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.2

  • Fix UI from not working in WP pre-6.6 by polyfilling react-jsx-runtime and conditionally loading component from wp-edit-post instead of wp-editor.
  • Update dependencies to latest versions, modernize repository setup, use PNPM for JS management.
  • Add E2E test coverage.

1.0.1

  • Avoid WordPress 6.8 deprecation warning by opting in into new 40px size for block editor UI components.

1.0.0

  • Initial release.