How to change static resource url?
-
I want to custom static resource url.
I use this function: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?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to change static resource url?’ is closed to new replies.