Plus WebP or AVIF

Generate WebP or AVIF

  • Generate WebP or AVIF file when adding image file in Media Library.
  • Generate WebP or AVIF from all the images by async/await.
  • Optionally, Can replace image files with WebP or AVIF when adding new media, and delete the original image file. Also, when generating all images, the original image file ID will be overwritten as WebP or AVIF and the original image file will be deleted. All URLs in the content are also replaced.

WP-CLI

WP-CLI commands are available. If you have a large number of files, WP-CLI commands is more reliable.
* wp pluswebpavif
* wp pluswebpavif webp -> Generated WebP.
* wp pluswebpavif avif -> Generated AVIF.
* wp pluswebpavif help -> Specification of this command.
* wp pluswebpavif webp mail -> Send results via email.
* wp pluswebpavif webp replace -> WebP or AVIF replacement of images and contents.
* wp pluswebpavif avif addext -> Append the webp or avif extension to the original filename.
* wp pluswebpavif webp --pid=12152 -> Process only specified Media ID(Conversion source ID).
* wp pluswebpavif avif --quality=90 -> Specifies the quality of WebP or AVIF.
* wp pluswebpavif webp --types=image/png,image/gif -> MIME type to convert.

How it works

Filter hooks

/** ==================================================
 * Filter for advanced change database.
 * If you want to replace other databases besides content.
 */
add_filter(
    'plus_webp_advanced_change_db',
    function( $before_url, $after_url ) {
        /* Your processing */
        return array( $before_url, $after_url );
    },
    10,
    2
);
  1. Upload plus-webp directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

سوالات متداول

none

×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
نسخه حجم فایل SHA256 تغییرات دانلود
5.11 25 کیلوبایت -
دانلود
×
★★★★★
★★★★★
4.6 /5 (26 نظر)

قیمت:

رایگان

نگارش

5.11

آخرین انتشار

12 اردیبهشت 1405

آخرین بروزرسانی

4 ماه پیش

نصب های فعال

5,000+

نگارش وردپرس

وردپرس 6.6+

تست شده از نسخه

وردپرس 7.0

نگارش PHP

PHP 8.1+

تگ ها

نسخه ها

1 نسخه