LLMS_Staging::menu_warning()

Adds a “bubble” to the “Orders” menu item when recurring payments are disabled.


Return Return

(void)


Top ↑

Source Source

File: includes/class-llms-staging.php

	public static function menu_warning() {

		if ( LLMS_Site::get_feature( 'recurring_payments' ) ) {
			return;
		}

		global $menu;
		foreach ( $menu as $index => $item ) {

			if ( 'edit.php?post_type=llms_order' === $item[2] ) {
				$menu[ $index ][0] .= self::get_menu_warning_bubble();
			}
		}

	}


Top ↑

Changelog Changelog

Changelog
Version Description
4.12.0 Moved HTML for the warning bubble into it's own method.
3.32.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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