LLMS_Admin_Notices_Core::sidebar_support()
Check theme support for LifterLMS Sidebars
Return Return
(void)
Source Source
File: includes/admin/class.llms.admin.notices.core.php
*/ public static function sidebar_support() { _deprecated_function( __METHOD__, '7.1.0' ); $theme = wp_get_theme(); $id = 'sidebars'; if ( ! current_theme_supports( 'lifterlms-sidebars' ) && ! in_array( $theme->get_template(), llms_get_core_supported_themes(), true ) ) { $msg = sprintf( __( '<strong>The current theme, %1$s, does not declare support for LifterLMS Sidebars.</strong> Course and Lesson sidebars may not work as expected. Please see our %2$sintegration guide%3$s or check out our %4$sLaunchPad%5$s theme which is designed specifically for use with LifterLMS.', 'lifterlms' ), $theme->get( 'Name' ), '<a href="https://lifterlms.com/docs/lifterlms-sidebar-support/?utm_source=notice&utm_medium=product&utm_content=sidebarsupport&utm_campaign=lifterlmsplugin" target="_blank">', '</a>', '<a href="https://lifterlms.com/product/launchpad/?utm_source=notice&utm_medium=product&utm_content=launchpad&utm_campaign=lifterlmsplugin" target="_blank">', '</a>' ); LLMS_Admin_Notices::add_notice( $id, $msg, array( 'dismissible' => true, 'dismiss_for_days' => 730, // @TODO: there should be a "forever" setting here. 'remindable' => false, 'type' => 'warning', ) ); } elseif ( LLMS_Admin_Notices::has_notice( $id ) ) { LLMS_Admin_Notices::delete_notice( $id );
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.5.0 | Use strict comparison for in_array() . |
3.7.4 | Unknown. |
3.0.0 | Introduced. |