I need to modify the wp-includes/blocks/latests-posts.php but whenever i update wordpress core the modification are lost. What is the best practice to modify such blocks?


The only issue I found online similar to my problem, is this: https://wordpress.org/support/topic/latest-posts-block/ and here look like people suggest to keep a local copy of the php file and restore every time WP core needs to be updates... !!!

  • 1
    What specifically are you trying to modify? Apr 6 '20 at 9:58
  • I need to modify the look and to add some extra custom field in the latest posts Apr 6 '20 at 10:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.