2017 © Pedro Peláez
 

wordpress-plugin wp-glide

Simple integration of Glide with WordPress

image

frozzare/wp-glide

Simple integration of Glide with WordPress

  • Tuesday, October 17, 2017
  • by fredrikforsmo
  • Repository
  • 2 Watchers
  • 7 Stars
  • 789 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 3 % Grown

The README.md

WP Glide

No Maintenance Intended, (*1)

Simple integration of Glide with WordPress., (*2)

Installation

composer require frozzare/wp-glide

Documentation

Default url path is /img/. So just change /wp-content/uploads/ to /img/ to use Glide., (*3)

For example:, (*4)

Before: http://local.wordpress.dev/wp-content/uploads/2015/11/stf01381_1600x800.jpg
After:  http://local.wordpress.dev/img/2015/11/stf01381_1600x800.jpg

You can change the upload url path with pre_option_upload_url_path filter., (*5)

add_filter( 'pre_option_upload_url_path', function () {
  return site_url( '/img' );
} );

The base path can be changed with glide/base_url filter. To change any options for Glide you can do it with glide/options filter. The default options in WP Glide is:, (*6)

'source'   => WP_CONTENT_DIR . '/uploads',
'cache'    => WP_CONTENT_DIR . '/cache/glide',
'base_url' => '/img/'

For more options see Glide setup., (*7)

Coding style

You can check if your contribution passes the styleguide by installing PHP CodeSniffer and running the following in your WP Glide directory:, (*8)

vendor/bin/phpcs -s --extensions=php --standard=phpcs.xml src/

License

MIT © Fredrik Forsmo, (*9)

The Versions

17/10 2017

dev-master

9999999-dev https://github.com/frozzare/wp-glide

Simple integration of Glide with WordPress

  Sources   Download

MIT

The Requires

 

wordpress images glide

13/03 2016

v1.0.0

1.0.0.0 https://github.com/frozzare/wp-glide

Simple integration of Glide with WordPress

  Sources   Download

MIT

The Requires

 

wordpress images glide