LLMS_Sidebars::genesis_support()
Custom static constructor that modifies methods for native genesis sidebar compatibility
Contents
Return Return
(void)
Source Source
File: includes/class.llms.sidebars.php
public static function genesis_support() { // Remove default registration in favor of genesis registration methods. remove_action( 'widgets_init', array( __CLASS__, 'register_sidebars' ), 5 ); // Add genesis registration method. add_action( 'widgets_init', array( __CLASS__, 'genesis_register_sidebars' ), 5 ); // Replace primary genesis sidebar with our course / lesson sidebar. add_action( 'genesis_before_sidebar_widget_area', array( __CLASS__, 'genesis_do_sidebar' ) ); // Genesis uses it's own reg method so we can send an empty array of settings. add_filter( 'llms_sidebar_settings', '__return_empty_array' ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |