LLMS_Sidebars::genesis_support()

Custom static constructor that modifies methods for native genesis sidebar compatibility


Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.sidebars.php

116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
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' );
 
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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