其他分享
首页 > 其他分享> > update Wordpress visual composer domain 解決新域名沒更新問題

update Wordpress visual composer domain 解決新域名沒更新問題

作者:互联网

由於Wordpress visual composer是用cache里的domain config params,所以會出現不更新的問題。

 

1. Visual composer source code

$uploadDir = wp_upload_dir(null, true, true);

  wp-content/plugins/visualcomposer/visualcomposer/Modules/Editors/DataAjax/Controller.php  Line 267

 

2. Visual composer source code

$uploadDir = wp_upload_dir(null, true, true);

  wp-content/plugins/visualcomposer/visualcomposer/Modules/Elements/AssetShortcode/Controller.php  Line 46

 

3. Visual composer source code

$uploadDir = wp_upload_dir(null, true, true);

  wp-content/plugins/visualcomposer/visualcomposer/Modules/FrontView/AssetUrlReplaceController.php  Line 48

 

4. Wordpress global path config

update_option( 'upload_path', ABSPATH . 'wp-content/uploads' );
update_option( 'upload_path_url', site_url( 'wp-content/uploads' ) );

  update "upload_path" & "upload_path_url" param

 

标签:domain,問題,visualcomposer,upload,update,content,composer,wp,true
来源: https://www.cnblogs.com/chenkuang/p/16481246.html