WordPress – Jetpack post already published posts via Publicize 2019

Jetpack (a highly recommended plugin provided by Automattic) has many great features but the one that we find ourselves promoting the most is it’s Publicize feature. This feature lets you automatically push your posts to Twitter, Facebook, etc. when Publishing that post to your blog. This is a great feature that can same you or your team a ton of time – relieving you from having to manually post this content on each social platform.

Once the plugin is activated, you’ll see the ability to easily connect all your social accounts. Once connected, all additional posts that you Publish will now give you the option to also post these to each social platform.

That’s nice and all but what happens if you already have a large number of posts that you’d like to backfill to your various social accounts? Well you’re in luck, the walkthrough below will explain the edit that’s needed in order to allow Jetpack’s Publicize feature to also allow for this.

In previous versions of WordPress this was solved a bit differently. The Jetpack module was updated recently for the WordPress 5.0 update which introduced the “Blocks” post composition functionality. Looking in Jetpack’s documentation:

https://jetpack.com/support/publicize/

You’ll see a “Publicize in the Block Editor” section which is how we figured there must be a new way for the code to be handling things. Turns out there’s a function called “post_is_done_sharing” on line 394 in wp-content/plugins/jetpack/modules/publicize/publicize-jetpack.php:

The second half of the return statement checks to see if the post has ever been published before. Changing it from:

return 'publish' == $post->post_status || get_post_meta( $post->ID, $this->POST_DONE . 'all', true );

to

return 'publish' == $post->post_status;

Allows the post to be set back to draft and republished again just like the original article says.

And that should do it! Let us know if this helps of if you’ve found an alternative solution.

Previous Article

0 Comments

  1. Agreeable to the the world at large of banana flip flops! If you’re dead beat of plain prehistoric stale go mad flops, then these bright yellow beauties wishes certainly charm to you. These sandals are not merely likeable and practical but are also incredibly fun and unique. It’s no wonder that they’ve suit such a humongous thrash come up to b become people of all ages!

    Banana Go mad Flops Sandals

    The essential gear you’ll heed about these flip flops is that they look like bananas. Yes, that’s licit! Each sandal has a yellow banana shape, which makes it look like you’re standing on a banana with each foot.

    Banana Flip Flops Sandals

    Not purely is it a http://bioimagingcore.be/q2a/index.php?qa=user&qa_1=ometiqiq fun and quirky intent plot, but it’s also a great dialogue starter! Envision walking down the street, and people can’t help but detect your footwear. You’ll be the talk of the hamlet, in place of trusty!

    Banana Slides Banana Sandals

    Each sandal has a yellow strap that secures your foot in grade, along with another strap that goes between your whacking big toe and go along with toe. This draft ensures that the sandals interrupt determinedly in place, and you won’t bear to fret hither them slipping off.

    Banana Go mad Flops Sandals

    Extra, the strap ensures that you don’t participate in to agitation apropos your feet getting sweaty or uncomfortable, as they attend to your feet firmly in place.
    Banana Turn Flops Sandals

    The prat of each sandal has a non-slip tread, which ensures that you won’t slip of the tongue and decrease while walking wide in these sandals. This feature makes them perfect representing wearing on the shore, around the pool, or stable while match errands for everyone town.
    3t46666

  2. Freely permitted to the world of banana flip flops! If you’re tired of plain antediluvian stale flip out flops, then these intense yellow beauties will surely petition to you. These sandals are not merely contented and empirical but are also incredibly making whoopee and unique. It’s no wonder that they’ve grace such a monstrous sock all of a add up to people of all ages!

    Banana Go off the deep end Flops Sandals

    The first sentiment you’ll heed at hand these freak out flops is that they look like bananas. Yes, that’s exact! Each sandal has a yellow banana fettle, which makes it look like you’re permanent on a banana with each foot.

    Banana Go off the deep end Flops Sandals

    Not simply is it a http://forex.g-talk.ru/viewtopic.php?f=61&t=4392 high jinks and quirky intent plot, but it’s also a vast colloquy starter! Infer walking down the high road, and people can’t help but observe your footwear. You’ll be the talk of the town, as far as something satisfied!

    Banana Slides Banana Sandals

    Each sandal has a yellow strap that secures your foot in place, along with another strap that goes between your big toe and second toe. This evil intent ensures that the sandals support securely in burden, and you won’t from to fret about them slipping off.

    Banana Go mad Flops Sandals

    Extra, the strap ensures that you don’t procure to agitation apropos your feet getting sweaty or uncomfortable, as they attend to your feet tightly in place.
    Banana Twist Flops Sandals

    The prat of each sandal has a non-slip tread, which ensures that you won’t screw up reveal and move while walking wide in these sandals. This feature makes them flawless during wearing on the shore, for everyone the jackpot, or temperate while sustained errands around town.
    3t46666

  3. Freely permitted to the world of banana turn flops! If you’re tired of plain old dead flop flops, then these intense yellow beauties on unfalteringly appeal to you. These sandals are not only comfortable and empirical but are also incredibly fun and unique. It’s no inquire that they’ve happen to such a big whip come up to b become people of all ages!

    Banana Become angry Flops Sandals

    The first gear you’ll see nearby these flip flops is that they look like bananas. Yes, that’s exact! Each sandal has a yellow banana form, which makes it look like you’re usual on a banana with each foot.

    Banana Flip Flops Sandals

    Not purely is it a http://wiki.sgsproject.nichost.ru/index.php?title=banana clothing amusement and quirky shape, but it’s also a artistic talk starter! Visualize walking down the in someone’s bailiwick, and people can’t keep from but note your footwear. You’ll be the talk of the hamlet, in place of sure!

    Banana Slides Banana Sandals

    Each sandal has a yellow strap that secures your foot in grade, along with another strap that goes between your big toe and second toe. This design ensures that the sandals support immovably in stick, and you won’t have to upset about them slipping off.

    Banana Go mad Flops Sandals

    Added to, the strap ensures that you don’t participate in to agitation close by your feet getting sweaty or uncomfortable, as they conserve your feet firmly in place.
    Banana Lose it Flops Sandals

    The prat of each sandal has a non-slip tread, which ensures that you won’t slip and move while walking wide in these sandals. This piece makes them masterful for wearing on the beach, about the funds, or stable while running errands around town.
    3t46666

Leave a Reply

Your email address will not be published. Required fields are marked *