LLMS_Staging::menu_warning()
Adds a “bubble” to the “Orders” menu item when recurring payments are disabled.
Return Return
(void)
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(); } } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.12.0 | Moved HTML for the warning bubble into it's own method. |
3.32.0 | Introduced. |