Skip to content
Snippets Groups Projects

FPF custom filetypes

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Bartek Jaskulski
    functions.php 130 B
    <?php
    
    add_filter('upload_mimes', function ( $mimes, $user ) {
        $mimes['ai'] = 'application/postscript';
        return $mimes;
    });
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment