LLMS_Shortcodes_Blocks::add_editor_styles()

Loads front end CSS in the editor.


Return Return

(void)


Top ↑

Source Source

File: includes/shortcodes/class.llms.shortcodes.blocks.php

	public static function add_editor_styles(): void {
		$plugins_dir = basename( WP_PLUGIN_DIR );
		$plugin_dir  = basename( LLMS_PLUGIN_DIR );
		$rtl         = is_rtl() ? '-rtl' : '';
		$path        = "../../$plugins_dir/$plugin_dir/assets/css/lifterlms{$rtl}.min.css";

		add_editor_style( $path );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
7.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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