PHP code example of imagewize / services-block

1. Go to this page and download the library: Download imagewize/services-block library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

imagewize / services-block example snippets


  /**
   * Allow SVG uploads.
   *
   * @param array $mimes Allowed mime types.
   * @return array Modified mime types.
   */
  add_filter('upload_mimes', function ($mimes) {
      $mimes['svg'] = 'image/svg+xml';
      return $mimes;
  });