add_action( 'style_loader_src', [ $this, 'modifying_resource_urls' ], 99, 2 );
But, The URL with some resource prefix has not been changed.
etc:
https://www.example.com/wp-admin/load-styles.php?c=1&dir=ltr&load%5B%5D=dashicons,admin-bar,common,forms,admin-menu,dashboard,list-tables,edit,revisions,media,themes,about,nav-menus,wp-pointer,widgets&load%5B%5D=,site-icon,l10n,buttons,wp-auth-check,wp-color-picker,media-views&ver=4.9.8
https://www.trueniu.com/wp-admin/load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,underscore,backbone,wp-util,&load%5B%5D=wp-backbone,media-models,moxiejs,plupload&ver=4.9.8
So how do you change it?
]]>Yes, I use CDN server.
Now all resources are loaded through the CDN, alleviating the burden on the source server.
Including images, js, css, fonts.
So I have to change the URL prefix. For example, I changed https://www.example.com to cdn.example.com.
]]>Just FYI, most people would call that “prefix” you are trying to change the “subdomain”. Might save you from needing to clarify next time ??
]]>Thanks, I will try it.
]]>