apply_filters( 'lifterlms_certificate_background_image_width', int $width, int $certificate_id )

Filters the display width of the certificate background image.


Description Description

This filter is used by legacy certificates only. If the certificate is utilizing the block editor the filtered value does not affect the size of the background image as the image is always set to fill the width and height of the certificate itself.


Top ↑

Parameters Parameters

$width

(int) Display width of the image, in pixels.

$certificate_id

(int) WP_Post ID of the awarded certificate.


Top ↑

Source Source

File: includes/models/model.llms.user.certificate.php

View on GitHub



Top ↑

Changelog Changelog

Changelog
Version Description
2.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.