Skip to main content
← Back to changelogs overview

Yoast Local SEO 4.2


  • Added new WPSEOLocalTimezone_Api class.
  • Added a new function: yoast_seo_local_is_location_open. This function returns true of false whethere a location is currently open.
  • Introduced a new widget that allows you to show a message when a location is open or closed.
  • Added instructions about the usage of 2nd set of opening hours.
  • When only using a single location, you can now see a preview map with draggable marker on the Yoast Local SEO settings page.
  • Added a new option to upload a business image.


  • Replaced deprecated function WPSEO_Utils::register_cache_clear_option with WPSEO_Sitemaps_Cache::register_clear_on_option_update
  • Replaced deprecated function wpseo_xml_sitemaps_base_url with WPSEO_Sitemaps_Router::get_base_url
  • Added locationaddress2 to the Yoast SEO Local default values to prevent undefined index notices.
  • Fixed a bug where 2nd sets of opening hours were not shown immediately when the options was selected for single locations.
  • Fixed styling bug for 2nd set of opening hours in the admin area.
  • Remove opening hours from settings page when multiple locations are used.
  • Switching between 12 and 24 hour time notations now works again.
  • Business image was not shown correctly in markup in opening hours and address widgets and shortcodes