LLMS_Staging::menu_warning()

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


Description Description


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] .= ' <span class="update-plugins">' . esc_html__( 'Staging', 'lifterlms' ) . '</span>';
			}
		}

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.32.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: