Created
April 19, 2019 13:54
-
-
Save jchristopher/954dbf64a0660818e82a41a7966f3757 to your computer and use it in GitHub Desktop.
Add Markdown MIME type support in SearchWP
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 | |
// Add Markdown MIME type support in SearchWP. | |
add_filter( 'searchwp_mimes_text', function( $mimes ) { | |
$mimes[] = 'text/markdown'; | |
return $mimes; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment