LLMS_Post_Types::add_thumbnail_support()

Ensure LifterLMS Post Types have thumbnail support


Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.post-types.php

	public static function add_thumbnail_support() {

		// Ensure theme support exists for LifterLMS post types.
		if ( ! current_theme_supports( 'post-thumbnails' ) ) {
			add_theme_support( 'post-thumbnails' );
		}

		$thumbnail_post_types = array(
			'course',
			'lesson',
			'llms_membership',
		);

		foreach ( $thumbnail_post_types as $p ) {

			add_post_type_support( $p, 'thumbnail' );

		}

		add_image_size( 'llms_notification_icon', 64, 64, true );

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.8.0 Unknown.
2.4.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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