plugings request url is the old url

I have changed my WordPress site url in wp-config.php by adding this two lines:

define( 'WP_HOME', 'http:// $new url' );
define( 'WP_SITEURL', 'http:// $new url' );

almost everything working fine, but I have some plugins that still trying to get data from the old url, for example:

https://OLD URL/wp-content/plugins/elementor/assets/lib/eicons/fonts/eicons.woff?5.3.0

there is another place that I should update the new url for the plugins?

thanks

3 Answers
3

No, that should be enough.

  • Elementor sets its base URL ELEMENTOR_URL from plugins_url
  • plugins_url uses WP_PLUGIN_URL which is set in default-constants.php
  • WP_PLUGIN_URL is constructed from WP_CONTENT_URL which is constructed from get_option('siteurl')
  • there’s a default options_siteurl filter called _config_wp_siteurl that overrides the value fetched from the database with WP_SITEURL if set.

So assuming you don’t have WP_PLUGIN_URL defined and that this isn’t a multisite, there’s nothing else you need to configure, no. I’d start by checking the value of WP_PLUGIN_URL that’s being generated by default-constants.php, or if you have any plugins_url filters defined somewhere.

Leave a Comment