Plugin Directory

Changeset 1998907


Ignore:
Timestamp:
12/20/2018 02:47:21 PM (7 years ago)
Author:
eastsidecode
Message:

Updated description to show php example

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-enable-webp/trunk/readme.txt

    r1998903 r1998907  
    2525}
    2626
    27 Use the function webpSupported() in template files to conditionally show WebP images. (it will return a boolean -- true or false)
     27Use the function webpSupported() in template files to conditionally show WebP images.
     28
     29Example:
     30if (webpSupported()) :
     31    WebP image here
     32 else:
     33    Image with other fallback format here
     34 endif;
     35
    2836
    2937Major features in WP Enable WebP include:
Note: See TracChangeset for help on using the changeset viewer.