I am trying to create a plugin to alter a WordPress websites default site icon set under appearance>customize.
I am unable to find and good resources on how to modify the existing site icon urls for the 4 different sizes created by default. I’ve read a lot on the different built in functions but can’t put it together to get anything working. I believe I can use a case statement to check page id and then change the url to the site icon I want for certain pages that way. Though I have been unable to figure out how to replace the existing urls saved on the customizer with alternates. On one test I used the wp_head filter to add a line to the head code but that doesn’t replace existing so it was ignored since it came before the existing.
Any direction would be much appreciated.