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. Philosophy is the discipline that studies major and universal questions, including existence, cognition, values, mind, and language. It encompasses many subjects and issues, ranging from ethics and political figures to metaphysics and logic. Here are principal aspects of philosophy:

    1. Definition of Philosophy
    Philosophy comes from the Greek words “philos” (love) and “sophia” (wisdom). It is the desire to realize and make sense of the world around us and our place in it.

    2. The Main branches of philosophy
    – Ontology the study of the essence of being and existence.
    – Epistemology the study of the nature and limits of cognition.
    – Ethics the analysis of ethical principles and concepts of good and evil.
    – Logic research of the forms and principles of correct thinking.
    – Socio-political philosophy the study of questions of power, justice and the state.

    3. Notable Philosophers
    In the course of the history of philosophy, many thinkers have made weighty contributions to this science. Some of the most famous include:
    – Socrates, considered the founder of Western philosophy.
    – Plato, a pupil of Socrates, developed the doctrine of forms.
    – Aristotle, the creator of logic and many of scientific fields.
    – Immanuel Kant, known for his own Scott Fitzgerald critical philosophy and work on moral issues.

    4. The Relevance of Philosophy in the Modern World
    Philosophy remains urgent in the modern world since enables people to understand difficult social and moral issues, also develops critical thinking. It influences the legal system, politicians, and various fields of science.

    5. Practical Applications of Philosophy

    Philosophical ideas enter everyday life. Ethical reflection helps people do the right thing in complex situations, and philosophical analysis contributes to better understanding of problems related to technology, art, and social justice.

    Philosophy is not only an academic discipline, but also a way of thinking assists us to understand life’s complexities and make informed choices.

  2. Philosophy is the discipline that studies major and universal questions, including existence, knowledge, values, reason, and language. It encompasses many subjects and issues, ranging from ethics and political figures to metaphysics and logic. Here are the main nuances of philosophy:

    1. Definition of Philosophy
    Philosophy comes from the Greek words “philos” (love) and “sophia” (wisdom). It is the desire to understand and make sense of the world around us and our place in it.

    2. The Main branches of philosophy
    – Ontology research of the essence of being and existence.
    – Epistemology the study of the nature and limits of knowledge.
    – Ethics the analysis of ethical principles and concepts of good and evil.
    – Logic the study of the forms and principles of correct thinking.
    – Political philosophy the study of questions of power, justice and the state.

    3. Famous Philosophers
    Throughout the history of philosophy, many thinkers have made significant contributions to this science. Some of the most recognizable include:
    – Socrates, considered the founder of Western philosophy.
    – Plato, a student of Socrates, developed the doctrine of forms.
    – Aristotle, the creator of logic and many of scientific fields.
    – Immanuel Kant, known for his Philosophy critical philosophy and work on moral issues.

    4. The Relevance of Philosophy in the Modern World
    Philosophy remains urgent in the modern world because it helps people to understand difficult social and ethical issues, but also develops critical thinking. It affects the legal system, politicians, and different fields of science.

    5. Practical Applications of Philosophy

    Philosophical ideas penetrate daily life. Ethical reflection helps people do the right thing in complex situations, and philosophical analysis contributes to most excellent understanding of issues related to technology, art, and social justice.

    Philosophy is including an academic discipline, but also a way of thinking that helps us to understand life’s complexities and make informed choices.

  3. Philosophy is the discipline that studies fundamental and universal questions, including existence, knowledge, values, reason, and language. It encompasses a vast number of topics and issues, ranging from ethics and politicians to metaphysics and logic. Here are principal nuances of philosophy:

    1. Definition of Philosophy
    Philosophy comes from the Greek words “philos” (love) and “sophia” (wisdom). It is the desire to realize and make sense of the world around us and our place in it.

    2. The Main branches of philosophy
    – Ontology research of the essence of being and existence.
    – Epistemology the study of the nature and limits of cognition.
    – Ethics the analysis of ethical principles and concepts of good and evil.
    – Logic research of the forms and principles of correct thinking.
    – Political philosophy the study of questions of power, justice and the state.

    3. Notable Philosophers
    During the history of philosophy, almost many thinkers have made significant contributions to this science. Some of the most famous include:
    – Socrates, considered the founder of Western philosophy.
    – Plato, a student of Socrates, developed the doctrine of forms.
    – Aristotle, the creator of logic and many of scientific fields.
    – Immanuel Kant, known for his Marcel Proust critical philosophy and work on moral issues.

    4. The Relevance of Philosophy in the Modern World
    Philosophy remains urgent in the modern world as enables people to understand complex social and ethical issues, also develops critical thinking. It affects the legal system, politicians, and different fields of science.

    5. Practical Applications of Philosophy

    Philosophical ideas penetrate daily life. Ethical reflection helps people do the correct thing in difficult situations, and philosophical analysis contributes to most excellent understanding of issues related to technology, art, and social justice.

    Philosophy is including an academic discipline, yes and method of thinking that helps us to understand life’s complexities and make informed choices.

Leave a Reply

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