WPIntell

Source evidence

WP static permalink

Share on Mastodon · support · 2026-02-12T01:04:00+00:00

questionsentiment
mediumseverity
0.6relevance
1replies
Evidence onlycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

1 / 1 rows with source links

100.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

0 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
supachupa unresolved
I am using a WordPress install not publicly accessible and then using WP static to publish the posts online as static HTML. This plugin is posting the local non-routable URL. How can I specify the public URL instead? The page I need help with: [ log in to see the link] Oh, I hadn’t yet heard of that use case! You should be able to filter the status messages, like use PHP’s str_replace() to replace the local with your public domain. This of course requires you’re able to add code snippets someplace, like in functions.php , a custom (must-use) plugin, or through the use of a separate “code snippets” plugin: Just a quick example: add_filter( 'share_on_mastodon_status', function( $status, $post ) { $status = str_replace( 'http://localhost.test/', 'https://www.example.org/', $status ); return $status; }, 10, 2 ); This would modify the message before it gets sent to your Mastodon server. Of course, depending on how or when the static pages are pushed to your web host, Mastodon instances might temporarily hit a 404 and cache the wrong link preview data. (It might be possible to work around that by setting a delay, under the plugin’s advanced settings. But maybe I’m overthinking things.)

Comments

1 shown
Jan Boddez 2026-02-18T14:17:00+00:00

Oh, I hadn’t yet heard of that use case! You should be able to filter the status messages, like use PHP’s str_replace() to replace the local with your public domain. This of course requires you’re able to add code snippets someplace, like in functions.php , a custom (must-use) plugin, or through the use of a separate “code snippets” plugin: Just a quick example: add_filter( 'share_on_mastodon_status', function( $status, $post ) { $status = str_replace( 'http://localhost.test/', 'https://www.example.org/', $status ); return $status; }, 10, 2 ); This would modify the message before it gets sent to your Mastodon server. Of course, depending on how or when the static pages are pushed to your web host, Mastodon instances might temporarily hit a 404 and cache the wrong link preview data. (It might be possible to work around that by setting a delay, under the plugin’s advanced settings. But maybe I’m overthinking things.)