LLMS_Staging::menu_warning()
Adds a “bubble” to the “Orders” menu item when recurring payments are disabled.
Description Description
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] .= ' <span class="update-plugins">' . esc_html__( 'Staging', 'lifterlms' ) . '</span>'; } } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.32.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: