Hi there!
Are you referring to a post that’s been published already? Once a post got published, and then shared on social media through Publicize, there is not way to change it I’m afraid.
Does that answer your question? Happy to help if you have any other doubts!
Hi , Stef
> Are you referring to a post that’s been published already?
No.
When share post , I want to share different url/different domain. Because , Admin Server and Cache/Front Server work at different domain.
Hmmm, I don’t think that’s possible, unless the second URL you want to get displayed is set by default as a redirect of the first URL.
Publicize grabs the info that are within the actual post you’re about to publish, so I’m afraid there is no way to customise that field.
Hi , Stef
I tried the following.
/plugin/jetpack/sync/class.jetpack-sync-module-posts.php
L265
$post->permalink = get_permalink( $post->ID );
Add the code
$post->permalink = get_permalink( $post->ID );
$post->permalink = str_replace('https://admin.mysite.com','https://www.mysite.com',$post->pemralink);
in my google+ , shared post url is correct for me !
But this solution is wrong way .
I want to change post permalink , before JetPack publicize send post data to SNSs .
Is there any hook ?
Good morning –
I want to change post permalink , before JetPack publicize send post data to SNSs
Are you referring to Simple Notification Services? Like, aws.amazon.com ?
Hi , lizkarkoski
Are you referring to Simple Notification Services? Like, aws.amazon.com ?
No. I refer to Social Network Services .
What I want to do is achieved with the following code.
Edit plugin’s source code.
/plugin/jetpack/sync/class.jetpack-sync-module-posts.php
L265
$post->permalink = get_permalink( $post->ID );
Add the code
$post->permalink = get_permalink( $post->ID );
$post->permalink = str_replace(‘https://admin.mysite.com’,’https://www.mysite.com’,$post->pemralink);
How can I change the contents of $post->permalink ?
Which hook is better solution ?
thanks.
Thanks for clarifying the SNS.
It’s not possible to change the permalink as mentioned by @erania-pinnera here:
Publicize grabs the info that are within the actual post you’re about to publish, so I’m afraid there is no way to customise that field.
As far as using hooks and customization, it is really outside the scope of support that we can provide here in the forum. Feel free to continue working on it, or consult with a developer privately.
Thanks lizkarkoski (@lizkarkoski)
As far as using hooks and customization, it is really outside the scope of support that we can provide here in the forum.
I understood it is out of support in this forum.
So close this topics.