Created
April 21, 2021 06:03
-
-
Save krokedilgists/ef214a69af835c9a05d8abd80b732a43 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Use together with Krokedil Product Documents pluign. | |
* https://krokedil.com/product/krokedil-product-documents/ | |
* | |
* Filter kpd_default_document_icon | |
* Changes the default/generic icon displayed in frontend. | |
*/ | |
add_filter( 'kpd_default_document_icon', 'custom_kpd_default_document_icon' ); | |
function custom_kpd_default_document_icon( $icon_url ) { | |
return 'https://mydomain.com/custom-icon.png'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment