Title: Programmatically update scores
Last modified: June 12, 2017

---

# Programmatically update scores

 *  Resolved [Creato](https://wordpress.org/support/users/creatomatic/)
 * (@creatomatic)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/programmatically-update-scores/)
 * Hi,
 * I have created an import script to automatically populate _yoast_wpseo_metadesc,
   _yoast_wpseo_focuskw
 * What routine do I call to get Yoast to recalculate the SEO/Readability ratings?
 * The closest thing I have found to this is code in class-recalculate-scores-ajax.
   php
 * Kind Regards,
 * James

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [benvaassen](https://wordpress.org/support/users/benvaassen/)
 * (@benvaassen)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/programmatically-update-scores/#post-9273424)
 * Hi,
 * We’re working on cleaning up these Yoast SEO support forums. Since your thread
   hasn’t had any activity in the last two weeks, we’ve marked it as resolved.
 * Of course, you’re always welcome to open a new topic. We kindly ask you to read
   [this post](https://wordpress.org/support/topic/read-this-before-your-post/) 
   before doing so.
 * Thanks for understanding!
 *  Thread Starter [Creato](https://wordpress.org/support/users/creatomatic/)
 * (@creatomatic)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/programmatically-update-scores/#post-9276665)
 * Hi Ben,
 * Just because you have ignored this post does not mean it is resolved.
 * Please can someone you point this in the direction of your developers as this
   is quite a technical question regarding the inner workings of the plugin.
 * Thanks,
 * James
 *  [Pcosta88](https://wordpress.org/support/users/pcosta88/)
 * (@pcosta88)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/programmatically-update-scores/#post-9277404)
 * Hi James,
 * We understand there is concern to get Yoast to recalculate the SEO/Readability
   ratings. Please know that we are, the Yoast Technical support team, are unable
   to resolve the issue. We are only able to resolve technical issues related to
   the plugin not working as expected rather than providing support for custom scripts.
 * We understand you would like the issue resolve. We suggest three options:
    A.
   Consider hiring a developer. We highly recommend checking out Code Poet ( [http://directory.codepoet.com/](http://directory.codepoet.com/))
   for available freelance WordPress developers and Human Made ( [https://hmn.md/](https://hmn.md/))
   for development & consultancy.
 * B. Alternatively, perhaps a developer watching these forums can assist further.
 * C. You may need to edit the JavaScript to force a recalculation. We have a guide
   that maybe helpful here: [https://github.com/Yoast/YoastSEO.js/blob/master/README.md](https://github.com/Yoast/YoastSEO.js/blob/master/README.md)
 *  Thread Starter [Creato](https://wordpress.org/support/users/creatomatic/)
 * (@creatomatic)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/programmatically-update-scores/#post-9277493)
 * Hi Pat,
 * Thank you for your response.
 * It is quite alarming that the SEO scoring happens in Javascript and I very much
   doubt any WordPress import plugin will be able to interact with Yoast now (not
   without a lot of hacking, at least). Perhaps you will consider reverting this
   important logic back to the server side code in a future release.
 * Kind regards,
 * James
 *  [Pcosta88](https://wordpress.org/support/users/pcosta88/)
 * (@pcosta88)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/programmatically-update-scores/#post-9277525)
 * Hi James,
 * We understand the concern. We do thank you for suggesting a new feature for one
   of our plugins. The request has been sent to our development team for further
   exploration. You can view the request here: [https://github.com/Yoast/wordpress-seo/issues/7344](https://github.com/Yoast/wordpress-seo/issues/7344)
 * We suggest commenting on the issue so you may be kept aware of any updates. You
   may need a GitHub account prior to commenting.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Programmatically update scores’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

 * [metadesc](https://wordpress.org/support/topic-tag/metadesc/)
 * [programmatically](https://wordpress.org/support/topic-tag/programmatically/)
 * [scores](https://wordpress.org/support/topic-tag/scores/)
 * [script](https://wordpress.org/support/topic-tag/script/)
 * [update](https://wordpress.org/support/topic-tag/update/)
 * [Yoast](https://wordpress.org/support/topic-tag/yoast/)

 * 5 replies
 * 3 participants
 * Last reply from: [Pcosta88](https://wordpress.org/support/users/pcosta88/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/programmatically-update-scores/#post-9277525)
 * Status: resolved