Skip to main content
added 15 characters in body
Source Link
cybmeta
  • 20.6k
  • 5
  • 47
  • 56

The style_loader_src filter is used to modify/filter the src (url) of a stylesheet. The function callback accepts two parameters, the first is the original src and the second the handler of the stylesheet. The handler is the first parameter of wp_enqueue_style() used to enqueue the stylesheet.

So, to replace a stylsheet source with another one you should check the handler to know wchich stylesheet it must replaced, in the code you posted the handledchecked handler is plugin-script-handle.

The style_loader_src filter is used to modify/filter the src (url) of a stylesheet. The function callback accepts two parameters, the first is the original src and the second the handler of the stylesheet. The handler is the first parameter of wp_enqueue_style() used to enqueue the stylesheet.

So, to replace a stylsheet source with another one you should check the handler to know wchich stylesheet it must replaced, in the code you the handled is plugin-script-handle.

The style_loader_src filter is used to modify/filter the src (url) of a stylesheet. The function callback accepts two parameters, the first is the original src and the second the handler of the stylesheet. The handler is the first parameter of wp_enqueue_style() used to enqueue the stylesheet.

So, to replace a stylsheet source with another one you should check the handler to know wchich stylesheet it must replaced, in the code you posted the checked handler is plugin-script-handle.

Source Link
cybmeta
  • 20.6k
  • 5
  • 47
  • 56

The style_loader_src filter is used to modify/filter the src (url) of a stylesheet. The function callback accepts two parameters, the first is the original src and the second the handler of the stylesheet. The handler is the first parameter of wp_enqueue_style() used to enqueue the stylesheet.

So, to replace a stylsheet source with another one you should check the handler to know wchich stylesheet it must replaced, in the code you the handled is plugin-script-handle.